Get Personal Data Logs
GET/v2/personal-data/logs
Gets a list of logs for a specific resource id and resource type.
You can use pagination with this resource. For more information, see pagination.
- This request is only accessible to
client_credentials
token users withSeller Admin
,Support
andIT
roles. - Non
client_credentials
token users cannot access this endpoint. See Permissions. - This request requires a filter for
resource_type
andresource_id
.
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
- 400
- default
OK
- application/json
- Schema
- Example (from schema)
- getLogs
Schema
- Array [
- ]
data PersonalDataLog[]
The unique identifier for the log entry.
The unique identifier for the store id.
The type of the object. Always equal to personal_data_log_entry
.
initiator object
Specifies who initiated the personal data change.
Specifies the time when the change happened.
Specifies the type of the event.
delta object
Includes fields that were changed as a result of the event.
The ID of the data entry that was changed.
The type of the data entry that was changed.
relationships object
resource_path object
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": "faf8c40f-a680-40ae-b7bc-78533bbdd8c3",
"store_id": "00000000-0000-1000-8000-000000000000",
"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"
},
"time": "2022-04-29T10:51:14.374Z",
"event_type": "user-authentication-info.event.created",
"delta": {
"email": "some@eamil.com",
"id": "00000000-0000-1000-8000-111111111112",
"name": "some_name",
"realm_id": "00000000-0000-1000-8000-111111111111",
"store_id": "00000000-0000-1000-8000-000000000000",
"type": "user-authentication-info"
},
"resource_id": "00000000-0000-1000-8000-111111111112",
"resource_type": "user-authentication-info",
"relationships": {
"resource_path": {
"url": "http://www.elaticpath.com"
}
}
}
],
"meta": {
"results": {
"total": 1
},
"page": {
"limit": 100,
"offset": 0,
"current": 1,
"total": 1
}
},
"links": {}
}
{
"data": [
{
"id": "faf8c40f-a680-40ae-b7bc-78533bbdd8c3",
"store_id": "00000000-0000-1000-8000-000000000000",
"type": "personal_data_log_entry",
"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"
},
"time": "2022-04-29T10:51:14.374Z",
"event_type": "user-authentication-info.event.created",
"delta": {
"email": "some@email.com",
"id": "00000000-0000-1000-8000-111111111112",
"name": "some_name",
"realm_id": "00000000-0000-1000-8000-111111111111",
"store_id": "00000000-0000-1000-8000-000000000000",
"type": "user-authentication-info"
},
"resource_id": "00000000-0000-1000-8000-111111111112",
"resource_type": "user-authentication-info",
"relationships": {
"resource_path": {
"url": "http://www.elaticpath.com"
}
}
}
],
"meta": {
"page": {
"limit": 100,
"offset": 0,
"current": 1,
"total": 1
},
"results": {
"total": 1
}
},
"links": {
"current": "https://useast.api.elasticpath.com/v2/personal-data/logs?page[offset]=0&page[limit]=20",
"first": "https://useast.api.elasticpath.com/v2/personal-data/logs?page[offset]=0&page[limit]=20",
"last": "https://useast.api.elasticpath.com/v2/personal-data/logs?page[offset]=0&page[limit]=20",
"next": "null",
"prev": "null"
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- missing-filter
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"
}
]
}
{
"errors": [
{
"detail": "bad filter: resource_id and resource_type are the filter fields that are both mandatory and only they are allowed",
"status": "400",
"title": "Bad Request"
}
]
}
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"
}
]
}
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}