{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/vi/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Tham chiếu Local API"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"tham-chiếu-local-api","__idx":0},"children":["Tham chiếu Local API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Local API của RPA trình duyệt do ứng dụng MoreLogin trên máy tính phiên bản V2.73.0 trở lên cung cấp tại ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["http://127.0.0.1:<port>/api/rpa/browser/v1"]},". Hãy dùng cổng Local API hiển thị trong phần cài đặt của ứng dụng; cổng mặc định là ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["40000"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cơ chế xác thực truy cập giống như ở các phần khác của Local API; xem ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/getting-started/authentication"},"children":["Xác thực"]},". Gửi phần thân JSON kèm ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Content-Type: application/json"]},". Phản hồi thành công có dạng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{data,meta}"]}," và phản hồi lỗi có dạng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{error,meta}"]},". Lỗi xác thực truy cập dùng định dạng 401 tiêu chuẩn của Local API. Hãy xử lý lỗi dựa trên trạng thái HTTP, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.code"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["details"]}," và đường dẫn của từng vấn đề, không dựa trên nội dung thông báo. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/common"},"children":["Quy ước API"]}," mô tả đầy đủ các quy tắc."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"danh-sách-endpoint","__idx":1},"children":["Danh sách endpoint"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"khả-năng-và-nút","__idx":2},"children":["Khả năng và nút"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Thao tác"},"children":["Thao tác"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Phương thức và đường dẫn tương đối"},"children":["Phương thức và đường dẫn tương đối"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/get-capabilities"},"children":["Lấy khả năng"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /capabilities"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/list-node-types"},"children":["Liệt kê loại nút"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /node-types"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/get-node-type"},"children":["Lấy hợp đồng nút"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /node-types/{nodeType}"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"xác-thực-quy-trình","__idx":3},"children":["Xác thực quy trình"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Thao tác"},"children":["Thao tác"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Phương thức và đường dẫn tương đối"},"children":["Phương thức và đường dẫn tương đối"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/validate-workflow"},"children":["Xác thực quy trình"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /validations"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"mẫu-và-chỉnh-sửa-nút","__idx":4},"children":["Mẫu và chỉnh sửa nút"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Thao tác"},"children":["Thao tác"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Phương thức và đường dẫn tương đối"},"children":["Phương thức và đường dẫn tương đối"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/list-templates"},"children":["Liệt kê mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /templates"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/create-template"},"children":["Tạo mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /templates"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/get-template"},"children":["Lấy mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /templates/{templateId}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/replace-template"},"children":["Thay thế mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /templates/{templateId}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/delete-template"},"children":["Xóa mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE /templates/{templateId}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/copy-template"},"children":["Sao chép mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /templates/{templateId}/copies"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/list-template-nodes"},"children":["Liệt kê nút của mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /templates/{templateId}/nodes"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/edit-template-nodes"},"children":["Chỉnh sửa nút của mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /templates/{templateId}/node-edits"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"lượt-chạy-và-kết-quả","__idx":5},"children":["Lượt chạy và kết quả"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Thao tác"},"children":["Thao tác"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Phương thức và đường dẫn tương đối"},"children":["Phương thức và đường dẫn tương đối"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/start-run"},"children":["Bắt đầu lượt chạy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /runs"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/list-runs"},"children":["Liệt kê lượt chạy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /runs"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/get-run"},"children":["Lấy chi tiết lượt chạy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /runs/{runId}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/cancel-run"},"children":["Hủy lượt chạy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /runs/{runId}/cancel"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/list-run-nodes"},"children":["Liệt kê lượt thực thi nút"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /runs/{runId}/nodes"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/list-run-artifacts"},"children":["Liệt kê tạo phẩm của lượt chạy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /runs/{runId}/artifacts"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"khôi-phục-yêu-cầu","__idx":6},"children":["Khôi phục yêu cầu"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Thao tác"},"children":["Thao tác"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Phương thức và đường dẫn tương đối"},"children":["Phương thức và đường dẫn tương đối"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/get-request-receipt"},"children":["Lấy biên nhận yêu cầu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /requests/{key}"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"tham-chiếu-chung","__idx":7},"children":["Tham chiếu chung"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/common"},"children":["Quy ước API"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/data-types"},"children":["Mô hình dữ liệu"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/workflow"},"children":["Quy trình, biến và nút cấu trúc"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/error-codes"},"children":["Mã lỗi"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/recovery"},"children":["Chi tiết lỗi và ma trận khôi phục"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/observation"},"children":["Quan sát lượt chạy và khôi phục yêu cầu"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"header-bắt-buộc-cho-yêu-cầu-ghi","__idx":8},"children":["Header bắt buộc cho yêu cầu ghi"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Thao tác"},"children":["Thao tác"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Idempotency-Key"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Idempotency-Key"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"X-RPA-Catalog-Revision"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-RPA-Catalog-Revision"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"If-Match"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["If-Match"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/create-template"},"children":["Tạo mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Khuyến nghị"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/replace-template"},"children":["Thay thế mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Khuyến nghị"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/delete-template"},"children":["Xóa mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Khuyến nghị"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không cần"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/copy-template"},"children":["Sao chép mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Khuyến nghị"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc: ETag của mẫu nguồn"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/edit-template-nodes"},"children":["Chỉnh sửa nút của mẫu"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Khuyến nghị"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/start-run"},"children":["Bắt đầu lượt chạy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Khuyến nghị"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bắt buộc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/cancel-run"},"children":["Hủy lượt chạy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Khuyến nghị"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không cần"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Idempotency-Key"]}," là tùy chọn, nhưng nếu không có header này, một lần thử lại sau khi hết thời gian chờ có thể lặp lại thao tác ghi. Hãy tạo UUID mới cho mỗi ý định ghi mới, và giữ UUID đó cùng với phương thức, đường dẫn, phần thân và ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["If-Match"]}," cho đến khi bạn biết kết quả. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["If-Match"]}," nhận chính xác ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ETag"]}," do ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/get-template"},"children":["Lấy mẫu"]}," trả về. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-RPA-Catalog-Revision"]}," nhận ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.catalogRevision"]}," từ ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/get-capabilities"},"children":["Lấy khả năng"]},". ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/api/validate-workflow"},"children":["Xác thực quy trình"]}," là thao tác chỉ đọc, không cần header nào trong số này và không để lại biên nhận yêu cầu."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"hợp-đồng-cục-bộ-dạng-máy-đọc-được","__idx":9},"children":["Hợp đồng cục bộ dạng máy đọc được"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Đọc ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/openapi.json"]}," tại URL cơ sở cục bộ để lấy hợp đồng HTTP. URL schema của quy trình nằm trong ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.docs.schema"]}," của phản hồi ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /capabilities"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"chỉnh-sửa-mẫu-hiện-có","__idx":10},"children":["Chỉnh sửa mẫu hiện có"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Đọc mẫu mới nhất và hợp đồng của các nút bạn sẽ chỉnh sửa. Với thay đổi một phần, hãy áp dụng các chỉnh sửa nút dự kiến lên toàn bộ cây và xác thực với ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["purpose:\"save\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["source.kind:\"inline\""]}," và ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["source.base:{templateId,version}"]},". Gửi các thao tác bằng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["node-edits"]}," sau khi bản đề xuất vượt qua bước xác thực. Một lô chỉnh sửa hoặc được lưu thành một phiên bản mới, hoặc không thay đổi gì. Hãy gửi nút và khối hoàn chỉnh khi bạn thay thế chúng, và sửa các tham chiếu khi bạn xóa nút. Dùng PUT để thay thế toàn bộ mẫu. Ghi các phụ thuộc mẫu con theo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{processId,revisionId}"]}," hiện tại của chúng, và đọc lại các phụ thuộc sau khi xảy ra xung đột phiên bản."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"khôi-phục","__idx":11},"children":["Khôi phục"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Tình huống"},"children":["Tình huống"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Bước tiếp theo"},"children":["Bước tiếp theo"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Hết thời gian chờ khi ghi, mất kết nối hoặc kết quả không chắc chắn"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Truy vấn ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /requests/{originalKey}"]},". Với ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]},", hãy dùng kết quả ban đầu; với một lượt chạy đã đăng ký xong, bạn vẫn cần kiểm tra trạng thái của lượt chạy đó. Với ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accepted"]}," hoặc ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["committed"]},", hãy thăm dò lại trong một khoảng thời gian có giới hạn. Với ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unknown"]},", lỗi 404 thông thường hoặc biên nhận đã hết hạn, hãy dừng các thao tác ghi tự động và kiểm tra tài nguyên."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_REQUEST_NOT_COMMITTED"]}," kèm ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["safeToRetrySameKey=true"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Thử lại cùng ý định với khóa, phương thức, đường dẫn và phần thân ban đầu, cùng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["If-Match"]}," ban đầu nếu có."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Xung đột phiên bản 412"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiểm tra biên nhận trước. Sau khi xác nhận rằng thao tác ghi chưa được commit, hãy đọc lại mẫu, hợp nhất, xác thực, rồi gửi với khóa mới và ETag hiện tại."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Danh mục đã thay đổi"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiểm tra biên nhận và xác nhận rằng thao tác ghi chưa được commit, sau đó làm mới khả năng và hợp đồng. Nếu phần thân và ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["If-Match"]}," giữ nguyên, hãy làm mới header danh mục và giữ khóa ban đầu."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["valid=false"]}," hoặc lỗi đầu vào có tính xác định"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sửa tại đường dẫn được báo cáo rồi xác thực lại. Nếu thao tác ghi đã được ghi nhận là thất bại, hãy xác nhận rằng không có gì được commit trước khi dùng khóa mới. Khi gặp 429 hoặc 503, hãy làm theo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Retry-After"]}," và các quy tắc về biên nhận."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Để chạy một mẫu đã lưu, hãy xem ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/run-api-example"},"children":["Chạy mẫu bằng API"]},"."]}]},"headings":[{"value":"Tham chiếu Local API","id":"tham-chiếu-local-api","depth":1},{"value":"Danh sách endpoint","id":"danh-sách-endpoint","depth":2},{"value":"Khả năng và nút","id":"khả-năng-và-nút","depth":3},{"value":"Xác thực quy trình","id":"xác-thực-quy-trình","depth":3},{"value":"Mẫu và chỉnh sửa nút","id":"mẫu-và-chỉnh-sửa-nút","depth":3},{"value":"Lượt chạy và kết quả","id":"lượt-chạy-và-kết-quả","depth":3},{"value":"Khôi phục yêu cầu","id":"khôi-phục-yêu-cầu","depth":3},{"value":"Tham chiếu chung","id":"tham-chiếu-chung","depth":3},{"value":"Header bắt buộc cho yêu cầu ghi","id":"header-bắt-buộc-cho-yêu-cầu-ghi","depth":2},{"value":"Hợp đồng cục bộ dạng máy đọc được","id":"hợp-đồng-cục-bộ-dạng-máy-đọc-được","depth":2},{"value":"Chỉnh sửa mẫu hiện có","id":"chỉnh-sửa-mẫu-hiện-có","depth":2},{"value":"Khôi phục","id":"khôi-phục","depth":2}],"frontmatter":{"seo":{"title":"Tham chiếu Local API"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/vi/browser-rpa/local-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}