For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete consent event

Delete consents events by calling the DELETE /consents/events endpoint. When deleting consent events, the user consent status will be automatically re-computed by re-applying the remaining (non-deleted) consent events, for a given regulation.

You must specify either the organization user ID (organization_user_id query-string parameter) or the Didomi user ID (user_id query-string parameter) of the user that you are querying events for.

You must also specify a list of filters as key-value pairs in the query-string parameters to select consent events that should be removed. The key should be a property name from the event schema with nested properties path specified with a .. For instance, a custom event metadata field can be specified as metadata.custom_key.

Example

DELETE /consents/events?organization_id={organization_id}&organization_user_id={organization_user_id}&metadata.booking_id={booking ID}

You can also delete a specific event by ID by calling DELETE /consents/events/:id.

Last updated