ONIOKODeveloper
Consent

Revoke a subject consent and close its partner session records.

In preparationNot released yet

This operation exists in the platform layer and is verified in CI, but it is not live for partners. The contract can still change before release. Do not build against it yet.

DELETE
/v1/subjects/{subject_id}/consents/{consent_id}

Contains pseudonymous personal data. Access is limited to the authenticated tenant and granted scope. A successful response confirms that associated runtime sessions were stopped.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

subject_id*Subject Id
Formatuuid
consent_id*Consent Id
Formatuuid

Header Parameters

Idempotency-Key*Idempotency-Key
Match^[A-Za-z0-9._~-]+$
Length16 <= length <= 128

Response Body

Successful response

application/json
  1. response
subject_id*Subject Id
Formatuuid
consent_id*Consent Id
Formatuuid
status*Status
Example Request
curl -X DELETE 'https://example.com/v1/subjects/497f6eca-6276-4993-bfeb-53cbbbba6f08/consents/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Idempotency-Key: stringstringstri'
Example Response
{  "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9",  "consent_id": "b6c6f30d-b96b-4de6-8a03-238cde9dddba",  "status": "revoked"}