openapi: 3.0.3 info: title: Data Hygiene API description: > Use the Data Hygiene REST API to schedule expiration dates for datasets or delete stored customer personal data in Experience Platform. - **Related documentation**: - [Advanced Data Lifecycle Management overview](https://experienceleague.adobe.com/en/docs/experience-platform/data-lifecycle/home) - [Quota endpoint](https://experienceleague.adobe.com/en/docs/experience-platform/data-lifecycle/api/quota) - [Workorder endpoint](https://experienceleague.adobe.com/en/docs/experience-platform/data-lifecycle/api/workorder) - [Dataset expiration endpoint](https://experienceleague.adobe.com/en/docs/experience-platform/data-lifecycle/api/dataset-expiration) - [Best practices for Advanced Data Lifecycle Management](https://experienceleague.adobe.com/en/docs/experience-platform/data-lifecycle/best-practices) - **Visualize API calls with Postman (a free, third-party software)**: * [Video guide for creating the Postman environment](https://video.tv.adobe.com/v/28832) * [Steps for importing environments and collections in Postman](https://learning.getpostman.com/docs/postman/collection_runs/using_environments_in_collection_runs/) - **API paths**: * Platform Gateway URL: https://platform.adobe.io * Base path for this API: /data/core/hygiene/ * Example of a complete path for making a call to "/ttl": https://platform.adobe.io/data/core/hygiene/ttl - **Required headers**: * All calls require the headers `Authorization`, `x-gw-ims-org-id`, and `x-api-key`. For more information on how to obtain these values, see the [authentication tutorial](http://www.adobe.com/go/platform-api-authentication-en). * All requests with a payload in the request body (such as POST and PUT calls) must include the header `Content-Type` with a value of `application/json`. - **API error handling**: * Refer to the Experience Platform API troubleshooting guide for [FAQs](https://experienceleague.adobe.com/docs/experience-platform/landing/troubleshooting.html#faq), [API status codes](https://experienceleague.adobe.com/docs/experience-platform/landing/troubleshooting.html#api-status-codes), and [request header errors](https://experienceleague.adobe.com/docs/experience-platform/landing/troubleshooting.html#request-header-errors). # UPDATE THE DESCRIPTION TO INCLUDE a postman collection when one exists. It should be listed on the lik below. # * [Data Hygiene API Postman collection on GitHub](https://github.com/adobe/experience-platform-postman-samples/blob/master/apis/experience-platform/Schema%20Registry%20API.postman_collection.json) version: 1.0.0 servers: - url: https://{environment}.adobe.io variables: environment: default: platform enum: - platform - platform-stage tags: - name: (NEW) Interactive API documentation description: You can now interact with the Experience Platform API endpoints directly from this API reference page. Get your [authentication credentials](http://www.adobe.com/go/platform-api-authentication-en) and use the **Try it** functionality in the right rail. Note that by using this functionality, you are making real API calls. Keep this in mind when you interact with production sandboxes. - name: Quota description: > Use the `/quota` endpoint in the Data Hygiene API to monitor your Advanced Data Lifecycle Management usage against your organization’s quota limits for each job type. - name: Dataset Expiration (TTL) description: > Use the `/ttl` endpoint to schedule expiration dates for datasets in Adobe Experience Platform. - name: Record Delete (Work order) description: > Use the `/workorder` endpoint in the Data Hygiene API to programmatically manage record delete requests in Adobe Experience Platform. Specify primary identities to target and remove the relevant records. paths: /quota: get: summary: List quota usage and limits description: | Returns the current quota usage and limits for data hygiene operations for your organization. Quota amounts may differ based on organization entitlements such as Privacy and Security Shield or Health Care Shield. The consumed quota resets on the 1st of each month at 00:00 GMT and 00:00 GMT for daily quota. Filter by quota type using the `quotaType` query parameter. Quota type values include: - `datasetExpirationQuota`: This object shows the number of concurrently active dataset expirations for your organization, and your total allowance of expirations. - `dailyConsumerDeleteIdentitiesQuota`: This object shows the total number of record delete requests made by your organization today and your total daily allowance. Note: Only accepted requests are counted. If a workorder is rejected because it fails validation, those identity deletions do not count against your quota. - `monthlyConsumerDeleteIdentitiesQuota`: This object shows the total number of record delete requests made by your organization this month and your total monthly allowance. Note: Only accepted requests are counted. If a workorder is rejected because it fails validation, those identity deletions do not count against your quota. operationId: listQuotas tags: - Quota parameters: - $ref: '#/components/parameters/ContentType' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/quotaType' responses: '200': description: Successfully retrieved quota information. content: application/json: schema: $ref: '#/components/schemas/QuotaResponse' examples: default: summary: Example /quota GET response value: quotas: - name: datasetExpirationQuota description: The number of concurrently active dataset-expiration delete operations in all work order requests for the organization. consumed: 11 quota: 75 - name: dailyConsumerDeleteIdentitiesQuota description: The consumed number of deleted identities in all work order requests for the organization for today. consumed: 314 quota: 700000 - name: monthlyConsumerDeleteIdentitiesQuota description: The consumed number of deleted identities in all work order requests for the organization this month. consumed: 2764 quota: 12000000 '400': x-summary: Bad request description: The request could not be understood or was missing required parameters. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '500': x-summary: Internal server error description: This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' /ttl: get: summary: List all dataset expiration configurations description: | Retrieves all configured dataset expirations for your organization. Results can be filtered with query parameters and include status and configuration details for each dataset expiration. operationId: listTtl tags: - Dataset Expiration (TTL) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/XRequestId' - $ref: '#/components/parameters/author' - $ref: '#/components/parameters/datasetId' - $ref: '#/components/parameters/datasetName' - $ref: '#/components/parameters/description' - $ref: '#/components/parameters/displayName' - $ref: '#/components/parameters/expiryDate' - $ref: '#/components/parameters/expiryToDate' - $ref: '#/components/parameters/expiryFromDate' - $ref: '#/components/parameters/limit' - $ref: '#/components/parameters/orgId' - $ref: '#/components/parameters/page' - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/ttlStatus' - $ref: '#/components/parameters/updatedDate' - $ref: '#/components/parameters/updatedFromDate' - $ref: '#/components/parameters/updatedToDate' responses: '200': x-summary: Success description: Successfully retrieved list of dataset expiration configurations. content: application/json: schema: $ref: '#/components/schemas/TTLListResponse' examples: default: summary: Example /ttl GET response value: results: - ttlId: SD-c9f113f2-d751-44bc-bc20-9d5ca0b6ae15 datasetId: 3e9f815ae1194c65b2a4c5ea datasetName: Acme_Profile_Engagements sandboxName: acme-beta displayName: Engagement Data Retention Policy description: Scheduled expiry for Acme marketing data imsOrg: C9D8E7F6A5B41234567890AB@AcmeOrg status: pending expiry: 2027-01-12T17:15:31.000Z updatedAt: 2026-12-15T12:40:20.000Z updatedBy: t.lannister@acme.com 3E9F815AE1194C65B2A4C5EA@acme.com - ttlId: SD-f1b8c3ea-4f8b-4c77-a1a6-965bd61e7b0f datasetId: 2b7c91fa73f3428ea92112bd datasetName: Acme_Customer_Events sandboxName: acme-beta displayName: Customer Events Expiry Rule description: Expiry for test event dataset imsOrg: C9D8E7F6A5B41234567890AB@AcmeOrg status: executing expiry: 2027-04-01T10:00:00.000Z updatedAt: 2027-03-31T09:59:59.000Z updatedBy: a.stark@acme.com 2B7C91FA73F3428EA92112BD@acme.com current_page: 0 total_pages: 1 total_count: 2 '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. content: application/json: schema: $ref: '#/components/schemas/ttlErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' post: summary: Create a new dataset expiration configuration (TTL) description: | Creates a new dataset expiration configuration (TTL) for a specified dataset in your organization. The configuration defines when the dataset will expire and be eligible for deletion. operationId: createTtl tags: - Dataset Expiration (TTL) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/ContentType' - $ref: '#/components/parameters/XRequestId' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateTTLRequest' examples: default: summary: Example /ttl POST request value: datasetId: 3e9f815ae1194c65b2a4c5ea expiry: 2030-12-31 displayName: Expiry rule for Acme customers description: Set expiration for Acme customer dataset responses: '201': x-summary: Created description: Successfully created dataset expiration configuration. content: application/json: schema: $ref: '#/components/schemas/CreateTTLResponse' examples: default: summary: Example /ttl POST response value: ttlId: SD-2aaf113e-3f17-4321-bf29-a2c51152b042 datasetId: 3e9f815ae1194c65b2a4c5ea datasetName: Acme_Customer_Data sandboxName: acme-prod displayName: Expiry rule for Acme customers description: Set expiration for Acme customer dataset imsOrg: C9D8E7F6A5B41234567890AB@AcmeOrg status: pending expiry: 2030-12-31T00:00:00Z updatedAt: 2029-01-02T10:35:45.000Z updatedBy: s.stark@acme.com 3E9F815AE1194C65B2A4C5EA@acme.com '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. content: application/json: schema: $ref: '#/components/schemas/ttlErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' /ttl/{ID}: get: summary: Retrieve details for a specific dataset expiration configuration description: | Returns information for a single dataset expiration configuration, identified by expiration ID or dataset ID. You may provide either an expiration ID (for example, SD-xxxxxx-xxxx) or a dataset ID as the path parameter. operationId: getTtl tags: - Dataset Expiration (TTL) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/XRequestId' - $ref: '#/components/parameters/ttlOrDatasetId' - $ref: '#/components/parameters/include' responses: '200': x-summary: Success description: Successfully retrieved dataset expiration configuration details. content: application/json: schema: $ref: '#/components/schemas/TTLDetailResponse' examples: default: summary: Example /ttl/{ttlOrDatasetId} GET response value: ttlId: SD-34e7811a-d9c8-4e22-9a63-7fb33c4b8e61 datasetId: a1b2c3d4e5f67890abcd1234 datasetName: Acme_Customer_Archive sandboxName: got-prod displayName: Archived Customer Expiry Rule description: Expiry rule for archived Acme customer data imsOrg: 885737B25DC460C50A49411B@AdobeOrg status: executing expiry: 2035-09-25T00:00:00Z updatedAt: 2035-09-01T19:00:55.000Z updatedBy: j.lannister@acme.com A1B2C3D4E5F67890ABCD1234@acme.com '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. content: application/json: schema: $ref: '#/components/schemas/ttlErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '404': x-summary: Not Found description: Dataset expiration configuration not found. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse404' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' put: summary: Update an existing dataset expiration configuration (TTL) description: | Updates specific fields of an existing dataset expiration configuration for a dataset. Only `displayName`, `description`, and `expiry` fields can be updated, and only if the dataset expiration configuration is in `pending` status. operationId: updateTtl tags: - Dataset Expiration (TTL) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/ttlId' - $ref: "#/components/parameters/ContentType" requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateTTLRequest' examples: default: summary: Example /ttl/{id} PUT request value: displayName: Customer Dataset Expiry Rule description: Updated description for Acme customer dataset expiry: 2031-06-15 responses: '200': x-summary: Success description: Successfully updated dataset expiration configuration. content: application/json: schema: $ref: '#/components/schemas/UpdateTTLResponse' examples: default: summary: Example /ttl/{ID} PUT response value: ttlId: SD-c1f902aa-57cb-412e-bb2b-c70b8e1a5f45 datasetId: 3e9f815ae1194c65b2a4c5ea datasetName: Acme_Customer_Data sandboxName: acme-prod displayName: Customer Dataset Expiry Rule description: Updated description for Acme customer dataset imsOrg: C9D8E7F6A5B41234567890AB@AcmeOrg status: pending expiry: 2031-06-15T00:00:00Z updatedAt: 2031-05-01T14:11:12.000Z updatedBy: b.tarth@acme.com 3E9F815AE1194C65B2A4C5EA@acme.com '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. content: application/json: schema: $ref: '#/components/schemas/ttlErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' delete: summary: Delete a dataset expiration configuration description: | Cancels a pending expiration request for the specified dataset. The configuration can only be deleted if it is in the `pending` status. If successful, the response will show `cancelled` in the `status` field to indicate the configuration has been cancelled. operationId: deleteTtl tags: - Dataset Expiration (TTL) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/XSandboxName' - $ref: "#/components/parameters/ContentType" - $ref: '#/components/parameters/XRequestId' - $ref: '#/components/parameters/ttlOrDatasetId' responses: '200': x-summary: Success description: Successfully cancelled the dataset expiration configuration. content: application/json: schema: $ref: '#/components/schemas/DeleteTTLResponse' examples: default: summary: Example /ttl/{id} DELETE response value: ttlId: SD-d4a7d918-283b-41fd-bfe1-4e730a613d21 datasetId: 5a9e2c68d3b24f03b55a91ce datasetName: Acme_Customer_Data sandboxName: acme-prod displayName: Customer Dataset Expiry Rule description: Cancelled expiry configuration for Acme customer dataset imsOrg: C9D8E7F6A5B41234567890AB@AcmeOrg status: cancelled expiry: 2032-02-28T00:00:00Z updatedAt: 2032-01-15T08:27:31.000Z updatedBy: s.clegane@acme.com 5A9E2C68D3B24F03B55A91CE@acme.com '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. A 400 error also occurs if you attempt to cancel a dataset that already has an active expiration. content: application/json: schema: $ref: '#/components/schemas/ttlErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' /workorder: get: summary: List all work order requests description: | Retrieves a paginated list of work order requests for data hygiene operations in your organization. You can filter results using query parameters. Each work order record includes action type, status, and related dataset and user information. operationId: getWorkOrders tags: - Record Delete (Work order) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/workorderType' - $ref: '#/components/parameters/workorderStatus' - $ref: '#/components/parameters/author' - $ref: '#/components/parameters/displayName' - $ref: '#/components/parameters/description' - $ref: "#/components/parameters/workorderIdQueryParameter" - $ref: '#/components/parameters/sandboxName' - $ref: '#/components/parameters/fromDate' - $ref: '#/components/parameters/toDate' - $ref: '#/components/parameters/filterDate' - $ref: '#/components/parameters/page' - $ref: '#/components/parameters/limit' - $ref: '#/components/parameters/orderBy' - $ref: '#/components/parameters/properties' responses: '200': x-summary: Success description: Successfully retrieved list of work order requests. content: application/json: schema: $ref: '#/components/schemas/WorkorderListResponse' examples: default: summary: Example /workorder GET response value: 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: [datalake, identity, profile, ajo] status: received createdBy: a.stark@acme.com BD8C3D631F41@acme.com datasetId: a7b7c8f3a1b8457eaa5321ab datasetName: Acme_Customer_Exports displayName: Customer Identity Delete Request description: Scheduled identity deletion for compliance - workorderId: DI-2a4c6a3d-dbb9-45e4-b37c-11203e4dbb6e orgId: 9C1F2AC143214567890ABCDE@AcmeOrg bundleId: BN-4cfabf02-c22a-45ef-b21f-bd8c3d631f41 action: identity-delete createdAt: 2034-03-16T10:32:00.101Z updatedAt: 2034-03-16T10:40:00.204Z operationCount: 2 targetServices: [datalake, identity, profile, ajo] status: received createdBy: t.lannister@acme.com BD8C3D631F41@acme.com datasetId: 5c7a6b8f3b9b455eac9321cd datasetName: Acme_Loyalty_Events displayName: Loyalty Identity Delete Request description: Scheduled deletion for loyalty dataset total: 2 count: 2 _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 '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '403': x-summary: Forbidden description: You do not have permission to access this resource or perform the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse403' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' post: summary: Create a new work order request description: | Submits a new work order to perform a data hygiene action, such as identity deletion or dataset expiration. Work orders are processed asynchronously and appear in the work order list after submission. operationId: createWorkOrder tags: - Record Delete (Work order) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/ContentType' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWorkorderRequest' examples: default: summary: Delete customer records by email (Acme Loyalty) value: 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" multiDataset: summary: Delete customer records from multiple datasets value: displayName: "Multi-dataset customer data deletion" description: "Delete records associated with the specified email addresses from multiple datasets." action: "delete_identity" datasetId: "7eab61f3e5c34810a49a1ab3,5c7a6b8f3b9b455eac9321cd" namespacesIdentities: - namespace: code: "email" ids: - "alice.smith@acmecorp.com" - "bob.jones@acmecorp.com" profileOnly: summary: Delete customer records from profile-related services only value: displayName: "Profile-only customer data deletion" description: "Delete identity, profile, and Adobe Journey Optimizer data while retaining data lake records." action: "delete_identity" datasetId: "ALL" targetServices: [identity, profile, ajo] namespacesIdentities: - namespace: code: "email" ids: - "alice.smith@acmecorp.com" responses: '200': x-summary: Success description: Successfully created work order request. content: application/json: schema: $ref: '#/components/schemas/CreateWorkorderResponse' examples: default: summary: Example /workorder POST response value: 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: [datalake, identity, profile, ajo] status: received createdBy: 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 multiDataset: summary: Example multi-dataset /workorder POST response value: workorderId: DI-1729d091-b08b-47f4-923f-6a4af52c93ac orgId: 8B1F2AC143214567890ABCDE@AcmeOrg bundleId: BN-4cfabf02-c22a-45ef-b21f-bd8c3d631f41 action: identity-delete createdAt: 2035-06-02T09:21:00.000Z updatedAt: 2035-06-02T09:21:05.000Z operationCount: 2 targetServices: [datalake, identity, profile, ajo] status: received createdBy: c.lannister@acme.com 7EAB61F3E5C34810A49A1AB3@acme.com datasetId: 7eab61f3e5c34810a49a1ab3,5c7a6b8f3b9b455eac9321cd displayName: Multi-dataset customer data deletion description: Delete records associated with the specified email addresses from multiple datasets. profileOnly: summary: Example profile-only /workorder POST response value: workorderId: DI-2a4c6a3d-dbb9-45e4-b37c-11203e4dbb6e 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: [identity, profile, ajo] status: received createdBy: c.lannister@acme.com 7EAB61F3E5C34810A49A1AB3@acme.com datasetId: ALL displayName: Profile-only customer data deletion description: Delete identity, profile, and Adobe Journey Optimizer data while retaining Data Lake records. '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' /workorder/{WORKORDER_ID}: get: summary: Retrieve details for a specific work order request description: | Returns information for a specific work order request, identified by its work order ID. The response includes action type, status, associated dataset and user information, and audit metadata. operationId: getWorkOrderById tags: - Record Delete (Work order) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/ContentType' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/XRequestId' - $ref: '#/components/parameters/workorderId' responses: '200': x-summary: Success description: Successfully retrieved work order request details. content: application/json: schema: $ref: '#/components/schemas/WorkorderDetailResponse' examples: default: summary: Example /workorder/{WORKORDER_ID} GET response value: 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 C189F8E7B2@acme.com datasetId: d2f1c8a4b8f747d0ba3521e2 datasetName: Acme_Marketing_Events displayName: Marketing Identity Delete Request description: Scheduled identity deletion for marketing compliance productStatusDetails: - productName: Data Management productStatus: success createdAt: 2022-08-08T16:51:31.535872Z - productName: Identity Service productStatus: success createdAt: 2022-08-08T16:43:46.331150Z - productName: Profile Service productStatus: waiting createdAt: 2022-08-08T16:37:13.443481Z '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '404': x-summary: Not Found description: Work order not found. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse404' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' put: summary: Update an existing work order request description: | Updates selected fields of a specific work order, identified by the `WORKORDER_ID`. Update the `name` and `description`` of a specific work order. operationId: updateWorkOrderById tags: - Record Delete (Work order) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/ContentType' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/workorderId' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateWorkorderRequest' examples: default: summary: Example /workorder/{WORKORDER_ID} PUT request value: name: Updated Marketing Identity Delete Request description: Updated deletion request for marketing data responses: '200': x-summary: Success description: Successfully updated work order request. content: application/json: schema: $ref: '#/components/schemas/UpdateWorkorderResponse' examples: default: summary: Example /workorder/{workorderId} PUT response value: 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: [datalake, identity, profile, ajo] status: received createdBy: 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: success createdAt: 2022-08-08T16:51:31.535872Z - productName: Identity Service productStatus: success createdAt: 2022-08-08T16:43:46.331150Z - productName: Profile Service productStatus: waiting createdAt: 2022-08-08T16:37:13.443481Z '400': x-summary: Bad Request description: > The request is invalid or missing required parameters. This may occur if the JSON payload is malformed or required fields are missing. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse400' '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse401' '404': x-summary: Not Found description: Work order not found. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse404' '500': x-summary: Internal server error description: > This can occur if there is an issue on the server while processing the request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse500' /workorder/{workorderId}/cancel: put: summary: Cancel a work order request description: | Cancels a work order that is in `received` status. Work orders in any other status cannot be cancelled. A successful response returns the work order with its status set to `cancelled`. operationId: cancelWorkOrderUsingPUT tags: - Record Delete (Work order) parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XApiKey' - $ref: '#/components/parameters/XImsOrgId' - $ref: '#/components/parameters/XSandboxName' - $ref: '#/components/parameters/XRequestId' - $ref: '#/components/parameters/cancelWorkorderId' responses: '200': x-summary: Success description: Successfully cancelled the work order request. content: application/json: schema: $ref: '#/components/schemas/WorkOrderResponse' examples: default: summary: Example /workorder/{workorderId}/cancel PUT response value: 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: [datalake, identity, profile, ajo] status: cancelled createdBy: 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 '201': x-summary: Created description: The cancellation request was successfully created for the work order. '400': x-summary: Bad Request description: The request is invalid, for example if your organization ID header is missing. '401': x-summary: Unauthorized description: Authentication failed or you do not have permissions for the requested operation. '403': x-summary: Forbidden description: You do not have permission to cancel this work order request. '404': x-summary: Not Found description: Work order not found. '409': x-summary: Conflict description: The work order is not in `received` status and cannot be cancelled. components: parameters: ContentType: name: Content-Type in: header required: true description: The media type of the request body. Should be 'application/json'. schema: type: string example: application/json XApiKey: name: x-api-key in: header required: true description: The API key associated with your Experience Platform account. For more information, see the [authentication tutorial](http://www.adobe.com/go/platform-api-authentication-en). schema: type: string example: 3c14558cb79f4ee6dd9884243314f482 XImsOrgId: name: x-gw-ims-org-id in: header required: true description: The organization ID associated with your Experience Platform account. See the [authentication tutorial](http://www.adobe.com/go/platform-api-authentication-en). schema: type: string Authorization: name: Authorization in: header required: true description: The bearer token for authentication. For more information, see the [authentication tutorial](http://www.adobe.com/go/platform-api-authentication-en). schema: type: string example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.GOTCHARACTER.TOKENVALUE XSandboxName: name: x-sandbox-name in: header required: true schema: type: string description: > All resources in Experience Platform are isolated to specific virtual sandboxes. Requests to Platform APIs require a header that specifies the name of the sandbox in which the operation will take place. example: loyalty-uat XRequestId: name: x-request-id in: header required: false schema: type: string description: > The tracing ID associated with the request. If none is provided, the server generates one. example: YrgXiqvCobA9neOmrzCP7kQLi4yIizoP # Query Parameters include: name: include in: query description: > Optional. Specifies additional details to include in the response. Supported value: - `history`: Includes the change history for the dataset expiration configuration. The response will include a `history` array showing the status (created or updated), expiry, timestamp, and user for each change event. required: false schema: type: string enum: [history] example: history quotaType: in: query name: quotaType description: > Filter the response by quota type. If no quotaType parameter is provided, all quota values are returned in the API response. required: false schema: type: string enum: - datasetExpirationQuota - dailyConsumerDeleteIdentitiesQuota - monthlyConsumerDeleteIdentitiesQuota ttlOrDatasetId: name: ID in: path required: true schema: type: string example: SD-c8c75921-2416-4be7-9cfd-9ab01de66c5f description: > An ID to identify the dataset expiration to perform an action on. This can be either the dataset expiration ID or the dataset ID. ttlId: name: ID in: path required: true schema: type: string description: An expiration ID to identify which dataset expiration to perform an action on. example: SD-c8c75921-2416-4be7-9cfd-9ab01de66c5f workorderId: name: WORKORDER_ID in: path required: true schema: type: string description: The ID of the deletion order. This can be used to look up the status of the deletion later. example: DI-a15345b8-a2d6-4d6f-b33c-5b593e86439a cancelWorkorderId: name: workorderId in: path required: true schema: type: string pattern: '[a-zA-Z0-9-_.]+' description: The ID of the work order to cancel. example: DI-a15345b8-a2d6-4d6f-b33c-5b593e86439a author: name: author in: query schema: type: string description: > Use the `author` query parameter to find the person who most recently updated the dataset expiration or workorder. If no updates have been made since its creation, this will match the original creator. This parameter matches entries where the `created_by` field corresponds to the search string. If the search string begins with `LIKE` or `NOT LIKE`, the remainder is treated as an SQL search pattern. Otherwise, the entire search string is treated as a literal string that must exactly match the entire content of a `created_by` field. example: LIKE %john%, John Q. Public # These were taken from ExL. https://experienceleague.adobe.com/en/docs/experience-platform/data-lifecycle/api/dataset-expiration#appendix # Q) Are they accurate as they are not in the wiki? # The extra ones from experience league are: # executedDate / executedFromDate / executedToDate # orderBy # I have not yet made these visible. datasetId: name: datasetId in: query schema: type: string description: Matches expirations that apply to a specific dataset. example: 62b3925ff20f8e1b990a7434 datasetName: name: datasetName in: query schema: type: string description: Matches expirations whose dataset name contains the provided search string. The match is case-insensitive. example: Acme-loyalty-customers-2025 description: name: description in: query schema: type: string description: A description of the purpose of the request. example: Handle expiration of Acme information through the end of 2024. workorderIdQueryParameter: name: workorderId in: query schema: type: string description: Filter work orders by providing a specific work order ID. This requires an exact match. example: DI-1729d091-b08b-47f4-923f-6a4af52c93ac displayName: name: displayName in: query schema: type: string description: Matches the display name provided in the search string. The match is case-insensitive. example: License Expiry # executedDate: # name: executedDate # in: query # schema: # type: string # description: > # This parameter filters results based on an exact execution date. It retrieves records associated with the execution # of an operation that occurred on the specified date. # example: '2023-02-05T19:34:40.383615Z' # executedFromDate: # name: executedFromDate # in: query # schema: # type: string # description: > # This parameter filters results to include records executed from a specified start date onwards. It retrieves # records of operations executed on or after the given date. # example: '2023-02-05T19:34:40.383615Z' # executedToDate: # name: executedToDate # in: query # schema: # type: string # description: > # This parameter filters results to include records executed up to a specified end date. It retrieves records # of operations executed on or before the given date. # example: '2023-02-05T19:34:40.383615Z' expiryDate: name: expiryDate in: query schema: type: string description: > Filters results to include records that have an expiration date matching the specified date. This parameter is used to retrieve data associated with a specific expiration date. example: '2024-01-06' expiryToDate: name: expiryToDate in: query schema: type: string description: > Filters results to include records with expirations that are due to be executed or have already been executed up to the specified end date. It is used to match expirations within or before the given interval. example: '2099-01-01' expiryFromDate: name: expiryFromDate in: query schema: type: string description: > Filters results to include records with expirations that are due to be executed or have already been executed starting from the specified start date. It is used to match expirations within or after the given interval. example: '2099-01-01' limit: name: limit in: query schema: type: integer minimum: 1 maximum: 100 default: 25 description: An integer between 1 and 100 indicates the maximum number of expirations to return. Defaults to 25. example: 50 toDate: name: toDate in: query schema: type: string description: > This parameter specifies the end date of the date range. It allows the user to filter the work orders to include only those created on or before this date. NOTE: If you specify the `toDate`, you must also specify the `fromDate`. example: '2099-01-01' fromDate: name: fromDate in: query schema: type: string description: > This parameter specifies the start date of the date range. It allows the user to filter the work orders to include only those created on or after this date. NOTE: If you specify the `fromDate`, you must also specify the `toDate`. example: '2099-01-01' filterDate: name: filterDate in: query schema: type: string description: > This parameter only returns the work orders that were created, updated, or have a particular status on that specific date. `filterDate` can be used with other query parameters to narrow down your search results and provide more specific and relevant information. example: "2024-06-12" # optionalWorkorderId: # name: WORKORDER_ID # in: query # required: false # schema: # type: string # description: The ID of the deletion order. This can be used to look up the status of the deletion later. # example: a15345b8-a2d6-4d6f-b33c-5b593e86439a properties: name: properties in: query schema: type: string description: > A comma-separated list of additional fields to include in each work order result. Specify one or more field names, separated by commas. Field names may contain only letters, numbers, and the following characters: `/ . , _ -`. For example, to include `field1` and `field2` in the response, use: `properties=field1,field2`. This parameter is optional. If not specified, only default fields are returned. example: field1,field2 orderBy: name: orderBy in: query schema: type: string enum: - displayName, +displayName, -displayName - description, +description, -description - id, +id, -id - createdBy, +createdBy, -createdBy - createdAt, +createdAt, -createdAt - updatedAt, +updatedAt, -updatedAt - operation, +operation, -operation - operationCount, +operationCount, -operationCount - status, +status, -status description: > The orderBy query parameter specifies the sorting order of the results returned by the API. Use it to arrange the data based on one or more fields, either in ascending (ASC) or descending (DESC) order. Use the + or - prefix to signify ASC, DESC respectively. The default sort direction is ascending when no prefix is provided. example: -datasetName orgId: name: orgId in: query schema: type: string description: > Matches datasets expirations whose organization ID matches that of the parameter. This value defaults to that of the `x-gw-ims-org-id` header. This parameter is ignored unless a service token is supplied in the request. example: 885737B25DC460C50A49411B@AdobeOrg page: name: page in: query schema: type: integer description: > An integer that indicates which page of expirations to return. Index of the results page to return. Page indexing starts at 0. The default page size is 50 results, with a maximum of 100 results per page. example: 3 sandboxName: name: sandboxName in: query schema: type: string description: > Matches work orders whose sandbox name exactly matches the `x-sandbox-name` header provided in the work order request. Use `sandboxName=*` to include work orders from all sandboxes. example: dev1 search: name: search in: query schema: type: string description: > Filters expirations using a case-insensitive partial match (wildcard search) across multiple fields. The `search` parameter matches records where the value is contained in any of the following fields: `author`, `displayName`, `description`, or `datasetName`, or is an exact match for the expiration ID. example: "acme" workorderType: name: type in: query schema: type: string enum: - identity-delete description: > Filter the results by the work order type. example: "identity-delete" workorderStatus: name: status in: query schema: type: string enum: - received - validated - submitted - ingested - completed - failed description: > A comma-separated list of workorder statuses to filter results. When included, the response returns only work orders matching the specified statuses. Status values are case-sensitive and must match exactly. example: submitted,completed ttlStatus: name: status in: query schema: type: string enum: - cancelled - completed - executing - pending description: > A comma-separated list of dataset expiration statuses to filter results. When included, the response returns only dataset expirations matching the specified statuses. Status values are case-sensitive and must match exactly. example: completed,executing updatedDate: name: updatedDate in: query schema: type: string description: > Filters results to include records that have been updated on the specified date. This parameter helps retrieve data associated with updates, including creation, cancellation, or execution. example: '2022-01-01' updatedToDate: name: updatedToDate in: query schema: type: string description: > Filters results to include records that have been updated up to and including the specified date. Useful for retrieving data updated before or on a certain date, encompassing all types of updates. example: '2022-01-01' updatedFromDate: name: updatedFromDate in: query schema: type: string description: > Filters results to include records that have been updated from the specified date onwards. This parameter is used to fetch data associated with updates occurring after or on a specific date. example: '2022-01-01' schemas: WorkOrderResponse: title: WorkOrderResponse type: object properties: action: type: string bundleId: type: string createdAt: type: string createdBy: type: string datasetId: type: string description: > The dataset selection submitted with the work order: a single dataset ID, a comma-separated list of dataset IDs, or `ALL`. datasetName: type: string description: type: string displayName: type: string identitiesAvailable: type: boolean identitiesNote: type: string operationCount: type: integer format: int32 orgId: type: string productStatusDetails: type: array items: $ref: '#/components/schemas/ProductStatusDetails' responseMessage: $ref: '#/components/schemas/WorkOrderResponseMessage' source: type: string status: type: string enum: - cancelled - completed - failed - ingested - received - submitted - validated submittedIdentities: type: array items: $ref: '#/components/schemas/NamespaceIdentities' targetServices: type: array items: type: string description: > The services that processed the deletion. This reflects the requested services, or the default services available to the organization when `targetServices` was omitted. updatedAt: type: string workorderId: type: string ProductStatusDetails: type: object properties: productName: type: string description: The name of the downstream service. productStatus: type: string description: The current processing status from the downstream service. createdAt: type: string description: The timestamp when the most recent status was posted by the service. WorkOrderResponseMessage: type: object description: Additional response details returned for the work order. additionalProperties: true NamespaceIdentities: type: object description: Identity namespace details returned for the work order. additionalProperties: true UpdateWorkorderRequest: type: object properties: name: type: string description: Human-readable label for the work order. example: Updated Marketing Identity Delete Request description: type: string description: Description of the work order request. example: Updated deletion request for marketing data UpdateWorkorderResponse: type: object properties: workorderId: type: string description: The unique identifier for the work order. example: DI-893a6b1d-47c2-41e1-b3f1-2d7c2956aabb orgId: type: string description: Your organization's unique identifier. example: 7D4E2AC143214567890ABCDE@AcmeOrg bundleId: type: string description: > The ID of the bundle this deletion order is associated with, used for debugging purposes. Multiple deletion orders are bundled together to be processed by downstream services. example: BN-12abcf45-32ea-45bc-9d1c-8e7b321cabc8 action: type: string description: The action type requested in the work order. example: identity-delete createdAt: type: string format: date-time description: The timestamp when the work order was created. example: '2038-04-15T12:14:29.210Z' updatedAt: type: string format: date-time description: The timestamp when the work order was last updated. example: '2038-04-15T12:30:29.442Z' operationCount: type: integer description: The number of operations included in the work order. example: 2 targetServices: type: array items: type: string description: > The services that processed the deletion. This reflects the requested services, or the default services available to the organization when `targetServices` was omitted. example: [datalake, identity, profile, ajo] status: type: string description: The current status of the work order. example: received createdBy: type: string description: The email and identifier of the user who created the work order. example: b.tarth@acme.com 8E7B321CABC8@acme.com datasetId: type: string description: > The dataset selection submitted with the work order: a single dataset ID, a comma-separated list of dataset IDs, or `ALL`. example: 1a2b3c4d5e6f7890abcdef12,7eab61f3e5c34810a49a1ab3 datasetName: type: string description: A name of the dataset associated with the work order. example: Acme_Marketing_2024 displayName: type: string description: A human-readable label for the work order. example: Updated Marketing Identity Delete Request description: type: string description: A description of the work order request. example: Updated deletion request for marketing data productStatusDetails: type: array description: | An array listing the current status of downstream processes for the request. Each object contains: - `productName`: The name of the downstream service. - `productStatus`: The current processing status from the downstream service. - `createdAt`: The timestamp when the most recent status was posted by the service. This property is available after the work order is submitted to downstream services to begin processing. items: type: object properties: productName: type: string description: The name of the downstream service. example: Data Management productStatus: type: string description: The current processing status from the downstream service. example: success createdAt: type: string format: date-time description: The timestamp when the most recent status was posted by the service. example: '2022-08-08T16:51:31.535872Z' # productName: Identity Service # productStatus: success # createdAt: '2022-08-08T16:43:46.331150Z' # - productName: Profile Service # productStatus: waiting # createdAt: '2022-08-08T16:37:13.443481Z' WorkorderDetailResponse: type: object properties: workorderId: type: string description: The unique identifier for the work order. example: DI-6fa98d52-7bd2-42a5-bf61-fb5c22ec9427 orgId: type: string description: Your organization's unique identifier. example: 3C7F2AC143214567890ABCDE@AcmeOrg bundleId: type: string description: > The unique identifier of the bundle containing this deletion order. Bundling allows multiple deletion orders to be grouped and processed together by downstream services. Primarily used for troubleshooting and tracking. example: BN-dbe3ffad-cb0b-401f-91ae-01c189f8e7b2 action: type: string description: The action type requested in the work order. example: identity-delete createdAt: type: string format: date-time description: The timestamp when the work order was created. example: 2037-01-21T08:25:45.119Z updatedAt: type: string format: date-time description: The timestamp when the work order was last updated. example: 2037-01-21T08:30:45.233Z operationCount: type: integer description: The number of operations included in the work order. example: 1 targetServices: type: array items: type: string description: > The services that processed the deletion. This reflects the requested services, or the default services available to the organization when `targetServices` was omitted. example: [ajo, profile, datalake, identity] status: type: string description: The current status of the work order. example: received createdBy: type: string description: The email and identifier of the user who created the work order. example: g.baratheon@acme.com C189F8E7B2@acme.com datasetId: type: string description: > The dataset selection submitted with the work order: a single dataset ID, a comma-separated list of dataset IDs, or `ALL`. example: d2f1c8a4b8f747d0ba3521e2 datasetName: type: string description: The name of the dataset associated with the work order. example: Acme_Marketing_Events displayName: type: string description: A human-readable label for the work order. example: Marketing Identity Delete Request description: type: string description: A description of the work order request. example: Scheduled identity deletion for marketing compliance productStatusDetails: type: array description: | An array listing the current status of downstream processes for the request. Each object contains: - `productName`: The name of the downstream service. - `productStatus`: The current processing status from the downstream service. - `createdAt`: The timestamp when the most recent status was posted by the service. This property is available after the work order is submitted to downstream services to begin processing. items: type: object properties: productName: type: string description: The name of the downstream service. example: Data Management productStatus: type: string description: The current processing status from the downstream service. example: success createdAt: type: string format: date-time description: The timestamp when the most recent status was posted by the service. example: '2022-08-08T16:51:31.535872Z' CreateWorkorderRequest: type: object properties: displayName: type: string description: A human-readable label for this work order. example: Acme Loyalty - Customer Data Deletion description: type: string description: A description of the work order request. example: Delete all records associated with the specified email addresses from the Acme_Loyalty_2023 dataset. action: type: string description: > The action requested for the work order. **NOTE**: The request value differs from the response value. Use "delete_identity" in requests, while responses will return "identity-delete". example: delete_identity datasetId: type: string description: | Specifies the dataset or datasets targeted by the work order. Use one of the following formats: - A single dataset ID. - A comma-separated list of dataset IDs, such as `id1,id2,id3`. - The literal `ALL` to target all applicable datasets. Specify multiple dataset IDs in a single string, not a JSON array. Do not combine `ALL` with specific dataset IDs. Profile-only deletion requires `datasetId` to be `ALL`. Datasets must have a primary identity or identity map. Record deletion matches primary identities only. example: 7eab61f3e5c34810a49a1ab3,5c7a6b8f3b9b455eac9321cd targetServices: type: array uniqueItems: true items: type: string description: | Specifies which services process the deletion. If omitted, the deletion applies to all services supported by the organization's entitlements. When omitted, the deletion applies to all services supported by the organization's entitlements. For organizations with Real-Time CDP or Adobe Journey Optimizer, the current default services are `datalake`, `identity`, `profile`, and `ajo`. This list can expand as additional services are supported. Customer Journey Analytics-only organizations without a Real-Time Customer Profile entitlement can use only `datalake`. For profile-only deletion, provide exactly `identity`, `profile`, and `ajo` in any order and set `datasetId` to `ALL`. This mode requires a Real-Time CDP or Adobe Journey Optimizer entitlement. It removes data from Identity Service, Real-Time Customer Profile, and Adobe Journey Optimizer while retaining the underlying data lake records. example: [identity, profile, ajo] namespacesIdentities: type: array description: A list of identity namespaces and their corresponding IDs to delete. items: type: object required: - namespace - IDs properties: namespace: type: object description: | Specifies the identity namespace to which the IDs belong (for example, "email", "phone", or a custom namespace code). required: - code properties: code: type: string description: The identity namespace code (such as "email"). example: email ids: type: array description: List of identity values to delete for this namespace. items: type: string example: - alice.smith@acmecorp.com - bob.jones@acmecorp.com - charlie.brown@acmecorp.com CreateWorkorderResponse: type: object properties: workorderId: type: string description: | The unique identifier for the work order. Use this value to look up the status or details of the deletion request. example: DI-95c40d52-6229-44e8-881b-fc7f072de63d orgId: type: string description: Your unique organization identifier. example: 8B1F2AC143214567890ABCDE@AcmeOrg bundleId: type: string description: | The unique identifier of the bundle containing this deletion order. Bundling allows multiple deletion orders to be grouped and processed together by downstream services. Primarily used for troubleshooting and tracking. example: BN-4cfabf02-c22a-45ef-b21f-bd8c3d631f41 action: type: string description: The action type requested in the work order. example: identity-delete createdAt: type: string format: date-time description: The timestamp when the work order was created. example: '2035-06-02T09:21:00.000Z' updatedAt: type: string format: date-time description: The timestamp when the work order was last updated. example: '2035-06-02T09:21:05.000Z' operationCount: type: integer description: The number of operations included in the work order. example: 1 targetServices: type: array items: type: string description: > The services that processed the deletion. This reflects the requested services, or the default services available to the organization when `targetServices` was omitted. example: [datalake, identity, profile, ajo] status: type: string description: Current status of the work order. example: received createdBy: type: string description: The email and identifier of the user who created the work order. example: c.lannister@acme.com 7EAB61F3E5C34810A49A1AB3@acme.com datasetId: type: string description: > The dataset selection submitted with the work order: a single dataset ID, a comma-separated list of dataset IDs, or `ALL`. example: 7eab61f3e5c34810a49a1ab3,5c7a6b8f3b9b455eac9321cd datasetName: type: string description: The name of the dataset for this work order. example: Acme_Loyalty_2023 displayName: type: string description: A human-readable label for this work order. example: Loyalty Identity Delete Request description: type: string description: A description of the work order request. example: Schedule deletion for Acme loyalty program dataset WorkorderListResponse: type: object properties: results: type: array items: $ref: '#/components/schemas/Workorder' total: type: integer description: Total number of work order requests. example: 2 count: type: integer description: Number of work orders in the current page. example: 2 _links: type: object description: Pagination and navigation links. properties: next: type: object properties: href: type: string example: https://platform.adobe.io/workorder?page=1&limit=2 templated: type: boolean example: false page: type: object properties: href: type: string example: https://platform.adobe.io/workorder?limit={limit}&page={page} templated: type: boolean example: true Workorder: type: object properties: workorderId: type: string description: | The unique identifier for the work order. Use this value to look up the status or details of the deletion request. example: DI-1729d091-b08b-47f4-923f-6a4af52c93ac orgId: type: string description: Your unique organization identifier. example: 9C1F2AC143214567890ABCDE@AcmeOrg bundleId: type: string description: | The unique identifier of the bundle containing this deletion order. Bundling allows multiple deletion orders to be grouped and processed together by downstream services. Primarily used for troubleshooting and tracking. example: BN-4cfabf02-c22a-45ef-b21f-bd8c3d631f41 action: type: string description: The action type requested in the workorder. example: identity-delete createdAt: type: string format: date-time description: The timestamp when the workorder was created. example: '2034-03-15T11:02:10.935Z' updatedAt: type: string format: date-time description: The timestamp when the workorder was last updated. example: '2034-03-15T11:10:10.938Z' operationCount: type: integer description: The number of operations included in the workorder. example: 3 targetServices: type: array items: type: string description: > The services that processed the deletion. This reflects the requested services, or the default services available to the organization when `targetServices` was omitted. example: [datalake, identity, profile, ajo] status: type: string description: The current status of the workorder. example: received createdBy: type: string description: The email and identifier of the user who created the workorder. example: a.stark@acme.com BD8C3D631F41@acme.com datasetId: type: string description: | The dataset selection submitted with the work order: a single dataset ID, a comma-separated list of dataset IDs, or `ALL`. example: a7b7c8f3a1b8457eaa5321ab,5c7a6b8f3b9b455eac9321cd datasetName: type: string description: The name of the dataset associated with the workorder. example: Acme_Customer_Exports displayName: type: string description: A human-readable label for the workorder. example: Customer Identity Delete Request description: type: string description: A description of the workorder's purpose. example: Scheduled identity deletion for compliance productStatusDetails: type: array description: | An array listing the current status of downstream processes for the request. Each object contains: - `productName`: The name of the downstream service. - `productStatus`: The current processing status from the downstream service. - `createdAt`: The timestamp when the most recent status was posted by the service. This property is available after the work order is submitted to downstream services to begin processing. items: type: object properties: productName: type: string description: The name of the downstream service. example: Data Management productStatus: type: string description: The current processing status from the downstream service. example: success createdAt: type: string format: date-time description: The timestamp when the most recent status was posted by the service. example: '2022-08-08T16:51:31.535872Z' TTLDetailResponse: type: object properties: ttlId: type: string description: The unique identifier for the dataset expiration configuration. example: SD-34e7811a-d9c8-4e22-9a63-7fb33c4b8e61 datasetId: type: string description: The unique identifier for the dataset. example: a1b2c3d4e5f67890abcd1234 datasetName: type: string description: The name of the dataset. example: Acme_Customer_Archive sandboxName: type: string description: The sandbox in which the dataset expiration is configured. example: got-prod displayName: type: string description: A human-readable name for the dataset expiration configuration. example: Archived Customer Expiry Rule description: type: string description: A description of the dataset expiration configuration. example: Expiry rule for archived Acme customer data imsOrg: type: string description: Your unique organization identifier associated with this configuration. example: C9D8E7F6A5B41234567890AB@AcmeOrg status: type: string description: The current status of the dataset expiration configuration. enum: [pending, executing, cancelled, completed] example: executing expiry: type: string format: date-time description: The scheduled expiration timestamp for the dataset. example: '2035-09-25T00:00:00Z' updatedAt: type: string format: dayoute-time description: Timestamp for the most recent update. example: '2035-09-01T19:00:55.000Z' updatedBy: type: string description: The identifier and email of the user or service that last updated the dataset expiration. example: j.lannister@acme.com A1B2C3D4E5F67890ABCD1234@acme.com DeleteTTLResponse: type: object properties: ttlId: type: string description: The unique identifier for the deleted dataset expiration configuration. example: SD-d4a7d918-283b-41fd-bfe1-4e730a613d21 datasetId: type: string description: The unique identifier for the dataset. example: 5a9e2c68d3b24f03b55a91ce datasetName: type: string description: The name of the dataset. example: Acme_Customer_Data sandboxName: type: string description: The sandbox where this dataset expiration is configured. example: acme-prod displayName: type: string description: The display name for the dataset expiration configuration. example: Customer Dataset Expiry Rule description: type: string description: A description of the dataset expiration configuration. example: Cancelled expiry configuration for Acme customer dataset imsOrg: type: string description: Your unique organization identifier associated with this configuration. example: C9D8E7F6A5B41234567890AB@AcmeOrg status: type: string description: The current status of the dataset expiration configuration. enum: [pending, executing, cancelled, completed] example: cancelled expiry: type: string format: date-time description: The scheduled expiration timestamp for the dataset. example: '2032-02-28T00:00:00Z' updatedAt: type: string format: date-time description: The timestamp for the most recent update. example: '2032-01-15T08:27:31.000Z' updatedBy: type: string description: The identifier and email of the user or service that last updated the dataset expiration configuration. example: s.clegane@acme.com 5A9E2C68D3B24F03B55A91CE@acme.com UpdateTTLRequest: type: object properties: displayName: type: string description: A human-readable name for the dataset expiration configuration. example: Customer Dataset Expiry Rule description: type: string description: A description of the dataset expiration configuration. example: Updated description for Acme customer dataset expiry: type: string format: date description: | The expiry date and time in ISO 8601 format. If the value includes only a date (e.g., YYYY-MM-DD), it defaults to midnight UTC (00:00:00Z) on that day. If no explicit zone offset is provided, UTC is used by default. A dataset expiration will be created with the specified timestamp. Note: The expiry must be at least 24 hours in the future.. example: '2031-06-15' UpdateTTLResponse: type: object properties: ttlId: type: string description: The unique identifier for the updated dataset expiration configuration. example: SD-c1f902aa-57cb-412e-bb2b-c70b8e1a5f45 datasetId: type: string description: The unique identifier for the dataset. example: 3e9f815ae1194c65b2a4c5ea datasetName: type: string description: The name of the dataset. example: Acme_Customer_Data sandboxName: type: string description: The sandbox in which this dataset expiration is configured. example: acme-prod displayName: type: string description: The display name for the dataset expiration configuration. example: Customer Dataset Expiry Rule description: type: string description: A description of the dataset expiration configuration. example: Updated description for Acme customer dataset imsOrg: type: string description: The organization ID associated with this configuration. example: C9D8E7F6A5B41234567890AB@AcmeOrg status: type: string description: The current status of the dataset expiration configuration. enum: [pending, executing, cancelled, completed] example: pending expiry: type: string format: date-time description: The scheduled expiration timestamp for the dataset. example: 2031-06-15T00:00:00Z updatedAt: type: string format: date-time description: The timestamp for the most recent update. example: 2031-05-01T14:11:12.000Z updatedBy: type: string description: The identifier and email of the user or service that last updated the dataset expiration configuration. example: b.tarth@acme.com 3E9F815AE1194C65B2A4C5EA@acme.com ErrorResponse400: type: object properties: error_code: type: string example: "400001" message: type: string example: Bad request. The request could not be understood or was missing required parameters. ttlErrorResponse400: type: object properties: type: type: string example: "http://ns.adobe.com/aep/errors/HYGN-3102-400" title: type: string example: "The requested operation could not be completed due to invalid or missing required parameters." status: type: integer example: 400 report: type: object properties: tenantInfo: type: object properties: sandboxName: type: string example: "prod" sandboxId: type: string example: "not-applicable" imsOrgId: type: string example: "FD3C3AC6921BC3460A483ED2@AdobeOrg" additionalContext: type: object properties: "Invoking Client ID": type: string example: "" error-chain: type: array items: type: object properties: serviceId: type: string example: "HYGN" errorCode: type: string example: "HYGN-3102-400" invokingServiceId: type: string example: "acp_privacy_hygiene" unixTimeStampMs: type: integer example: 1754408150394 ErrorResponse401: type: object properties: error_code: type: string example: "401013" message: type: string example: Unauthorized. Authentication failed or user does not have permissions for the requested operation. ErrorResponse403: type: object properties: error_code: type: string example: "403027" message: type: string example: Forbidden. You do not have permission to access this resource or perform the requested operation. ErrorResponse404: type: object properties: error_code: type: string example: "404003" message: type: string example: Dataset expiration configuration SD-c9f113f2-d751-44bc-bc20-9d5ca0b6ae15 not found. ErrorResponse500: type: object properties: error_code: type: string example: "500001" message: type: string example: Internal server error. CreateTTLRequest: type: object required: - datasetId - expiry - displayName properties: datasetId: type: string description: The unique identifier for the dataset to apply the expiration. example: 3e9f815ae1194c65b2a4c5ea expiry: type: string format: date description: | The expiry date and time in ISO 8601 format. If the value includes only a date (e.g., YYYY-MM-DD), it defaults to midnight UTC (00:00:00Z) on that day. If no explicit zone offset is provided, UTC is used by default. A dataset expiration will be created with the specified timestamp. Note: The expiry must be at least 24 hours in the future. example: 2030-12-31 displayName: type: string description: A human-readable name for the dataset expiration configuration. example: Expiry rule for Acme customers description: type: string description: A description of the dataset expiration configuration. example: Set expiration for Acme customer dataset CreateTTLResponse: type: object properties: ttlId: type: string description: The unique identifier for the created dataset expiration configuration. example: SD-2aaf113e-3f17-4321-bf29-a2c51152b042 datasetId: type: string description: The unique identifier for the dataset. example: 3e9f815ae1194c65b2a4c5ea datasetName: type: string description: The name of the dataset. example: Acme_Customer_Data sandboxName: type: string description: The sandbox in which this dataset expiration is configured. example: acme-prod displayName: type: string description: The display name for the dataset expiration configuration. example: Expiry rule for Acme customers description: type: string description: A description of the dataset expiration configuration. example: Set expiration for Acme customer dataset imsOrg: type: string description: Your unique organization identifier associated with this configuration. example: C9D8E7F6A5B41234567890AB@AcmeOrg status: type: string description: The current status of the dataset expiration configuration. enum: [pending, executing, cancelled, completed] example: pending expiry: type: string format: date-time description: The scheduled expiration timestamp for the dataset. example: '2030-12-31T00:00:00Z' updatedAt: type: string format: date-time description: The timestamp for the most recent update. example: '2029-01-02T10:35:45.000Z' updatedBy: type: string description: The identifier and email of the user or service that last updated the dataset expiration configuration. example: s.stark@acme.com 3E9F815AE1194C65B2A4C5EA@acme.com TTLListResponse: type: object properties: results: type: array items: $ref: '#/components/schemas/DatasetExpirationConfig' current_page: type: integer description: A zero-based index of the current results page. example: 0 total_pages: type: integer description: The total number of pages available. example: 1 total_count: type: integer description: The total number of dataset expiration configuration records available. example: 2 DatasetExpirationConfig: type: object properties: ttlId: type: string description: The unique identifier for the dataset expiration configuration. example: SD-c9f113f2-d751-44bc-bc20-9d5ca0b6ae15 datasetId: type: string description: The unique identifier of the dataset associated with this dataset expiration configuration. example: 3e9f815ae1194c65b2a4c5ea datasetName: type: string description: The name of the dataset. example: Acme_Profile_Engagements sandboxName: type: string description: The sandbox in which this dataset expiration is configured. example: acme-beta displayName: type: string description: A human-readable name for the dataset expiration configuration. example: Loyalty Program Dataset Annual Cleanup description: type: string description: A description of the dataset expiration configuration. example: Scheduled expiry for Acme marketing data imsOrg: type: string description: Your unique organization identifier associated with this configuration. example: C9D8E7F6A5B41234567890AB@AcmeOrg status: type: string description: Current status of the dataset expiration configuration. enum: [pending, executing, cancelled, completed] example: pending expiry: type: string format: date-time description: The scheduled expiration timestamp for the dataset. example: '2027-01-12T17:15:31.000Z' updatedAt: type: string format: date-time description: The last updated timestamp for this dataset expiration configuration. example: '2026-12-15T12:40:20.000Z' updatedBy: type: string description: The identifier and email of the user or service that last updated the dataset expiration configuration. example: t.lannister@acme.com 3E9F815AE1194C65B2A4C5EA@acme.com QuotaResponse: type: object properties: quotas: type: array items: $ref: '#/components/schemas/Quota' Quota: type: object properties: name: type: string description: The quota type identifier. example: datasetExpirationQuota description: type: string description: Description of what this quota limits. example: The number of concurrently active Expiration Dataset Delete operations in all work order requests for the organization. consumed: type: integer description: The amount of quota currently consumed. The consumed amount resets on the 1st of the month at 00:00 GMT and 00:00 GMT for daily quota. example: 314 quota: type: integer description: The maximum allotment of this quota type for your organization. example: 700000