記錄刪除工單 work-order-endpoint
使用資料衛生API中的/workorder
端點在Adobe Experience Platform中建立、檢視和管理記錄刪除工單。 工單可讓您控制、監控及追蹤資料集中的資料移除作業,協助您維持資料品質,並支援組織的資料控管標準。
快速入門
開始之前,請參閱總覽以瞭解必要的標頭、如何讀取範例API呼叫,以及到何處尋找相關檔案。
配額與處理時間表 quotas
記錄刪除工單受每日和每月識別碼提交限制的約束,此限制由您組織的授權權益決定。 這些限制同時適用於UI和API型記錄刪除請求。
依產品的每月提交權利 quota-limits
下表顯示產品和權益層級的識別碼提交限制。 對於每種產品,每月上限是兩個值中較小者:固定的識別碼上限,或與授權資料量繫結的百分比型臨界值。
記錄刪除工單容量是 共用服務。 您的每月上限反映了Real-Time CDP、Adobe Journey Optimizer、Customer Journey Analytics和任何適用的Shield附加元件的最高權益。
處理識別碼提交的時間表 sla-processing-timelines
提交之後,系統會根據您的權益層次,將記錄刪除工單排入佇列並進行處理。
如果您的組織需要更高的限制,請聯絡您的Adobe代表以要求軟體權利檔案審查。
清單記錄刪除工單 list
擷取貴組織中資料衛生作業的記錄刪除工單的分頁清單。 使用查詢引數篩選結果。 每個工單記錄都包含動作型別(例如identity-delete
)、狀態、相關資料集和使用者詳細資訊,以及稽核中繼資料。
API格式
GET /workorder
下表說明可用於列出記錄刪除工單的查詢引數。
search
type
identity-delete
)。status
列舉:
received
,validated
,submitted
,ingested
,completed
,failed
author
displayName
description
workorderId
sandboxName
*
包含所有沙箱。fromDate
toDate
。toDate
fromDate
。filterDate
page
limit
orderBy
+
或-
首碼進行遞增/遞減。 範例:orderBy=-datasetName
。properties
要求
下列請求會擷取所有已完成的記錄刪除工單,限製為每頁兩次:
curl -X GET \
"https://platform.adobe.io/data/core/hygiene/workorder?status=completed&limit=2" \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'
回應
成功的回應會傳回記錄刪除工單的分頁清單。
{
"results": [
{
"workorderId": "DI-1729d091-b08b-47f4-923f-6a4af52c93ac",
"orgId": "9C1F2AC143214567890ABCDE@AcmeOrg",
"bundleId": "BN-4cfabf02-c22a-45ef-b21f-bd8c3d631f41",
"action": "identity-delete",
"createdAt": "2034-03-15T11:02:10.935Z",
"updatedAt": "2034-03-15T11:10:10.938Z",
"operationCount": 3,
"targetServices": [
"profile",
"datalake",
"identity"
],
"status": "received",
"createdBy": "a.stark@acme.com <a.stark@acme.com> BD8C3D631F41@acme.com",
"datasetId": "a7b7c8f3a1b8457eaa5321ab",
"datasetName": "Acme_Customer_Exports",
"displayName": "Customer Identity Delete Request",
"description": "Scheduled identity deletion for compliance"
}
],
"total": 1,
"count": 1,
"_links": {
"next": {
"href": "https://platform.adobe.io/workorder?page=1&limit=2",
"templated": false
},
"page": {
"href": "https://platform.adobe.io/workorder?limit={limit}&page={page}",
"templated": true
}
}
}
下表說明回應中的特性。
results
workorderId
orgId
bundleId
action
createdAt
updatedAt
operationCount
targetServices
status
received
、validated
、submitted
、ingested
、completed
和failed
。createdBy
datasetId
datasetName
displayName
description
total
count
_links
next
href
(字串)和templated
(布林值)的物件。page
href
(字串)和templated
(布林值)的物件,用於頁面導覽。建立記錄刪除工單 create
若要從單一資料集或所有資料集中刪除與一或多個身分相關聯的記錄,請對/workorder
端點發出POST要求。
工單會以非同步方式處理,並在提交後顯示在工單清單中。
API格式
POST /workorder
要求
以下請求會從特定資料集中刪除與指定電子郵件地址相關聯的所有記錄。
curl -X POST \
https://platform.adobe.io/data/core/hygiene/workorder \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'Content-Type: application/json' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '{
"displayName": "Acme Loyalty - Customer Data Deletion",
"description": "Delete all records associated with the specified email addresses from the Acme_Loyalty_2023 dataset.",
"action": "delete_identity",
"datasetId": "7eab61f3e5c34810a49a1ab3",
"namespacesIdentities": [
{
"namespace": {
"code": "email"
},
"IDs": [
"alice.smith@acmecorp.com",
"bob.jones@acmecorp.com",
"charlie.brown@acmecorp.com"
]
}
]
}'
下表說明建立記錄刪除工單的特性。
displayName
description
action
delete_identity
。datasetId
ALL
來鎖定所有資料集。 資料集必須具有主要身分或身分對應。 如果身分對應存在,則會顯示為名為identityMap
的頂層欄位。請注意,資料集列的身分對應中可能有許多身分,但只能將一個標示為主要身分。 必須包含
"primary": true
以強制id
符合主要身分。namespacesIdentities
物件陣列,每個都包含:
namespace
:物件具有code
屬性,指定了身分名稱空間(例如,「email」)。IDs
:要刪除此名稱空間的一組身分值。
身分識別名稱空間會提供身分識別資料的內容。 您可以使用Experience Platform提供的標準名稱空間或建立您自己的名稱空間。 若要深入瞭解,請參閱身分名稱空間檔案和身分識別服務API規格。
回應
成功的回應會傳回新記錄刪除工單的詳細資料。
{
"workorderId": "DI-95c40d52-6229-44e8-881b-fc7f072de63d",
"orgId": "8B1F2AC143214567890ABCDE@AcmeOrg",
"bundleId": "BN-c61bec61-5ce8-498f-a538-fb84b094adc6",
"action": "identity-delete",
"createdAt": "2035-06-02T09:21:00.000Z",
"updatedAt": "2035-06-02T09:21:05.000Z",
"operationCount": 1,
"targetServices": [
"profile",
"datalake",
"identity"
],
"status": "received",
"createdBy": "c.lannister@acme.com <c.lannister@acme.com> 7EAB61F3E5C34810A49A1AB3@acme.com",
"datasetId": "7eab61f3e5c34810a49a1ab3",
"datasetName": "Acme_Loyalty_2023",
"displayName": "Loyalty Identity Delete Request",
"description": "Schedule deletion for Acme loyalty program dataset"
}
下表說明回應中的特性。
workorderId
orgId
bundleId
action
createdAt
updatedAt
operationCount
targetServices
status
createdBy
datasetId
ALL
。datasetName
displayName
description
identity-delete
。 如果API變更為使用不同的值(例如delete_identity
),本檔案將會相應地更新。擷取特定記錄刪除工單的詳細資料 lookup
向/workorder/{WORKORDER_ID}
發出GET要求,擷取特定記錄刪除工單的資訊。 回應包括動作型別、狀態、關聯的資料集和使用者資訊,以及稽核中繼資料。
API格式
GET /workorder/{WORKORDER_ID}
{WORK_ORDER_ID}
要求
curl -X GET \
https://platform.adobe.io/data/core/hygiene/workorder/DI-6fa98d52-7bd2-42a5-bf61-fb5c22ec9427 \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'
回應
成功的回應會傳回指定記錄刪除工單的詳細資料。
{
"workorderId": "DI-6fa98d52-7bd2-42a5-bf61-fb5c22ec9427",
"orgId": "3C7F2AC143214567890ABCDE@AcmeOrg",
"bundleId": "BN-dbe3ffad-cb0b-401f-91ae-01c189f8e7b2",
"action": "identity-delete",
"createdAt": "2037-01-21T08:25:45.119Z",
"updatedAt": "2037-01-21T08:30:45.233Z",
"operationCount": 3,
"targetServices": [
"ajo",
"profile",
"datalake",
"identity"
],
"status": "received",
"createdBy": "g.baratheon@acme.com <g.baratheon@acme.com> C189F8E7B2@acme.com",
"datasetId": "d2f1c8a4b8f747d0ba3521e2",
"datasetName": "Acme_Marketing_Events",
"displayName": "Marketing Identity Delete Request",
"description": "Scheduled identity deletion for marketing compliance"
}
下表說明回應中的特性。
workorderId
orgId
bundleId
action
createdAt
updatedAt
operationCount
targetServices
status
createdBy
datasetId
datasetName
displayName
description
更新記錄刪除工單
藉由對name
端點發出PUT要求,更新記錄刪除工作順序的description
和/workorder/{WORKORDER_ID}
。
API格式
PUT /workorder/{WORKORDER_ID}
下表說明此請求的引數。
{WORK_ORDER_ID}
要求
curl -X PUT \
https://platform.adobe.io/data/core/hygiene/workorder/DI-893a6b1d-47c2-41e1-b3f1-2d7c2956aabb \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Updated Marketing Identity Delete Request",
"description": "Updated deletion request for marketing data"
}'
下表說明您可以更新的特性。
name
description
回應
成功的回應會傳回更新的工單請求。
{
"workorderId": "DI-893a6b1d-47c2-41e1-b3f1-2d7c2956aabb",
"orgId": "7D4E2AC143214567890ABCDE@AcmeOrg",
"bundleId": "BN-12abcf45-32ea-45bc-9d1c-8e7b321cabc8",
"action": "identity-delete",
"createdAt": "2038-04-15T12:14:29.210Z",
"updatedAt": "2038-04-15T12:30:29.442Z",
"operationCount": 2,
"targetServices": [
"profile",
"datalake"
],
"status": "received",
"createdBy": "b.tarth@acme.com <b.tarth@acme.com> 8E7B321CABC8@acme.com",
"datasetId": "1a2b3c4d5e6f7890abcdef12",
"datasetName": "Acme_Marketing_2024",
"displayName": "Updated Marketing Identity Delete Request",
"description": "Updated deletion request for marketing data",
"productStatusDetails": [
{
"productName": "Data Management",
"productStatus": "waiting",
"createdAt": "2024-06-12T20:11:18.447747Z"
},
{
"productName": "Identity Service",
"productStatus": "success",
"createdAt": "2024-06-12T20:36:09.020832Z"
},
{
"productName": "Profile Service",
"productStatus": "waiting",
"createdAt": "2024-06-12T20:11:18.447747Z"
},
{
"productName": "Journey Orchestrator",
"productStatus": "success",
"createdAt": "2024-06-12T20:12:19.843199Z"
}
]
}
workorderId
orgId
bundleId
action
createdAt
updatedAt
operationCount
targetServices
status
received
、validated
、submitted
、ingested
、completed
和failed
。createdBy
datasetId
datasetName
displayName
description
productStatusDetails
列出請求下游處理序目前狀態的陣列。 每個物件包含:
productName
:下游服務的名稱。productStatus
:下游服務的目前處理狀態。createdAt
:服務發佈最新狀態時的時間戳記。
將工單提交至下游服務以開始處理之後,即可使用此屬性。