Delete a draft consent statement version.
DELETE
/api/admin/consent-statements/{sid}/versions/{vid}
Code sample: Shell / cURL
curl --request DELETE \ --url https://auth.example.com/api/admin/consent-statements/example/versions/example \ --header 'Authorization: Bearer <token>'Deletes a draft version. Active or retired versions cannot be deleted.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” sid
required
string
Consent statement identifier.
vid
required
string
Consent statement version identifier.
Responses
Section titled “ Responses ”Consent delete response.
Media type application/json
object
success
required
boolean
message
required
string
key
additional properties
Example
{ "success": true, "message": "User deleted successfully"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}