Get Personal Data Related Data Entries
GET/v2/personal-data/related-data-entries
Gets a list of related data entries filtered by 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 RelatedDataEntry[]
The type of a related data entry.
The ID of a related data entry.
The type of the object. Always equal to related_data_entry
.
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": [
{
"resource_type": "user-authentication-info",
"resource_id": "00000000-0000-1000-8000-111111111112",
"type": "string"
}
],
"meta": {
"results": {
"total": 1
},
"page": {
"limit": 100,
"offset": 0,
"current": 1,
"total": 1
}
},
"links": {}
}
{
"data": [
{
"resource_id": "00000000-0000-1000-8000-111111111112",
"type": "related_data_entry",
"resource_type": "user-authentication-info"
}
],
"meta": {
"page": {
"limit": 20,
"offset": 0,
"current": 1,
"total": 1
},
"results": {
"total": 1
}
},
"links": {
"current": "https://useast.api.elasticpath.com/v2/personal-data/related-data-entries?page[offset]=0&page[limit]=20",
"first": "https://useast.api.elasticpath.com/v2/personal-data/related-data-entries?page[limit]=20&page[offset]=0",
"last": "https://useast.api.elasticpath.com/v2/personal-data/related-data-entries?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"
}
]
}