Get all Personal Data Erasure Request
GET/v2/personal-data/erasure-requests
Gets a list of erasure requests for a specific resource id and resource type.
You can use pagination with this resource. For more information, see pagination.
Filtering
The following operator and attributes are required for filtering erasure requests.
Operator | Description |
---|---|
eq | Checks whether the values of two operands are equal. If the values are equal, the condition is true. |
Attribute | Type | Operator | Example |
---|---|---|---|
resource_type | string | eq | eq(resource_type,customer) |
resource_id | string | eq | eq(resource_id,0f850c15-d643-480a-a2b4-9e3c26067178\) |
Request
Query Parameters
Possible values: <= 10000
The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the page length store setting is used.
The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the page length store setting is used.
Filter attributes. For more information, see the Filtering section.
Responses
- 200
- 401
- default
OK
- application/json
- Schema
- Example (from schema)
- postErasureRequest
Schema
- Array [
- ]
data ErasureRequestResponse[]
The unique identifier for the log entry.
The type of the data entry to be erased.
The ID of the data entry to be erased (note that also all data entries in the personal data set will be erased).
The type of the object. Always equal to erasure_request
.
initiator object
Specifies who initiated the erasure request.
Specifies the status of the erasure request.
Elaborates on the erasure request status.
Specifies the status of the erasure request.
Elaborates on the erasure request status.
links object
The self link.
meta object
results objectrequired
Total number of results for the entire collection.
page objectrequired
The maximum number of records for all pages.
The current offset by number of pages.
The current number of pages.
The total number of records for the entire collection.
links object
Always the current page.
Always the first page.
Always null
if there is only one page.
Always null
if there is only one page.
Always null
if the user is on the first page.
{
"data": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"resource_type": "account",
"resource_id": "98140362-6caf-4829-b93d-953ac6adbe6e",
"type": "string",
"initiator": {
"access-token-email": "accounts@elasticpath.com",
"access-token-id": 1222341536243516000,
"access-token-name": "elastic path test team",
"access-token-store-id": "15ea9633-278c-4807-80f7-2009fed63c7e",
"access-token-type": "client-credentials-token"
},
"status": "string",
"status_description": "string",
"created_at": "string",
"updated_at": "string",
"links": {
"self": "string"
}
}
],
"meta": {
"results": {
"total": 1
},
"page": {
"limit": 100,
"offset": 0,
"current": 1,
"total": 1
}
},
"links": {}
}
{
"meta": {
"page": {
"limit": 10,
"offset": 0,
"current": 1,
"total": 1
},
"results": {
"total": 1
}
},
"data": [
{
"id": "43eb23ef-9a97-466f-9315-d0e0c9df25b5",
"type": "erasure_request",
"resource_id": "abe71c87-974d-4ced-9f83-6b8d5502b0e8",
"resource_type": "account",
"initiator": {
"access-token-email": "accounts@molt.in",
"access-token-id": "1222341536243515939",
"access-token-name": "moltin test team",
"access-token-store-id": "15ea9633-278c-4807-80f7-2009fed63c7e",
"access-token-type": "client-credentials-token"
},
"status": "FAILURE",
"status_description": "There was an error processing your request, you can retry it or report it using the id",
"created_at": "2022-05-25T10:10:58.623Z",
"updated_at": "2022-05-25T10:10:58.676Z"
},
{
"id": "eeb182ed-f929-4197-bb43-7104afa852f2",
"type": "erasure_request",
"resource_id": "74f98b7a-dbbf-49ed-b7a7-eaea766b8e38",
"resource_type": "address",
"initiator": {
"access-token-email": "accounts@molt.in",
"access-token-id": "1222341536243515939",
"access-token-name": "moltin test team",
"access-token-store-id": "15ea9633-278c-4807-80f7-2009fed63c7e",
"access-token-type": "client-credentials-token"
},
"status": "SUCCESS",
"status_description": "The erasure request is successfully processed",
"created_at": "2022-05-26T08:25:37.618Z",
"updated_at": "2022-05-26T08:25:37.698Z"
},
{
"id": "39787c4b-a338-4bd7-ace9-456d1ae8e90b",
"type": "erasure_request",
"resource_id": "3327fb93-b687-4c0c-a850-ee95e0303ef1",
"resource_type": "account",
"initiator": {
"access-token-email": "accounts@molt.in",
"access-token-id": "1222341536243515939",
"access-token-name": "moltin test team",
"access-token-store-id": "15ea9633-278c-4807-80f7-2009fed63c7e",
"access-token-type": "client-credentials-token"
},
"status": "FAILURE",
"status_description": "There was an error processing your request, you can retry it or report it using the id",
"created_at": "2022-05-26T08:48:56.183Z",
"updated_at": "2022-05-26T08:48:56.365Z"
}
],
"links": {
"current": "https://useast.api.elasticpath.com/v2/personal-data/erasure-requests?filter=eq(resource_type,account_member):eq(resource_id,00000000-0000-1000-8000-000f00000300)&page[offset]=0&page[limit]=10",
"first": "https://useast.api.elasticpath.com/v2/personal-data/erasure-requests?filter=eq(resource_type,account_member):eq(resource_id,00000000-0000-1000-8000-000f00000300)&page[offset]=0&page[limit]=10",
"last": "https://useast.api.elasticpath.com/v2/personal-data/erasure-requests?filter=eq(resource_type,account_member):eq(resource_id,00000000-0000-1000-8000-000f00000300)&page[offset]=0&page[limit]=10",
"next": "null",
"prev": "null"
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- unauthorized-error
Schema
- Array [
- ]
errors Error[]required
A brief summary of the error.
The HTTP response code of the error.
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Unauthorized
{
"errors": [
{
"title": "Unauthorized",
"status": "401"
}
]
}
Internal server error.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors Error[]required
A brief summary of the error.
The HTTP response code of the error.
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}