Remove GDPR consent
The function takes the organization ID and person ID and removes the specified GDPR consent, or all consents.
Path Parameters
- person_id string required
The person ID
Example: 903c1ff9-f2cc-435c-b242-9d8a690fcf0a
Query Parameters
- consent_levels string[]
Possible values: [
none
,necessary
,analytics
,marketing
,retargeting
,tracking
]The names of the consent levels to remove from the person
- deleteAll boolean
Whether to delete all GDPR consents for this person
Header Parameters
- SlashID-OrgID string required
The organization ID
Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1
Responses
- 204
- 400
- 404
No content
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
DELETE /persons/:person_id/consent/gdpr
https://api.slashid.com
Authorization
type: apiKeyname: SlashID-API-Keyin: header
Request
Request
curl -L -X DELETE 'https://api.slashid.com/persons/:person_id/consent/gdpr' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X DELETE 'https://api.slashid.com/persons/:person_id/consent/gdpr' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X DELETE 'https://api.slashid.com/persons/:person_id/consent/gdpr' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X DELETE 'https://api.slashid.com/persons/:person_id/consent/gdpr' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X DELETE 'https://api.slashid.com/persons/:person_id/consent/gdpr' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X DELETE 'https://api.slashid.com/persons/:person_id/consent/gdpr' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X DELETE 'https://api.slashid.com/persons/:person_id/consent/gdpr' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'