Revoke a Profile

Required plan: Emerging

Description #

Allows your application to revoke access to a specific profile.

Note that this does not affect the authorization as a whole, only your authorization to the specific profile. If you want to revoke all access to their account, you should instead call the Revoke Authorization endpoint.

URL format #

{data_center_url}/v1/profiles/{profile_id}/revoke

Example Request #

POST /v1/profiles/pro_n23kjnwrw2/revoke HTTP/1.1
Host: {data_center_url}
Authorization: Bearer {ACCESS_TOKEN}

Example Response #

HTTP/1.1 202 OK

Request parameters #

data_center_url required

The URL for the data center you want to communicate with. Possible choices are:

  • api-au.cronofy.com - πŸ‡¦πŸ‡Ί Australia
  • api-ca.cronofy.com - πŸ‡¨πŸ‡¦ Canada
  • api-de.cronofy.com - πŸ‡©πŸ‡ͺ Germany
  • api-sg.cronofy.com - πŸ‡ΈπŸ‡¬ Singapore
  • api-uk.cronofy.com - πŸ‡¬πŸ‡§ United Kingdom
  • api.cronofy.com - πŸ‡ΊπŸ‡Έ United States

Find out more about Cronofy's data centers.

profile_id required  #

This specifies the ID of the profile you wish to revoke access to, as an ASCII-only String.

Error responses #

401 Unauthorized #

The request was refused as the provided authentication credentials were not recognized.

When an OAuth refresh_token is available then it should be used to request a replacement access_token before the request is retried.