oauth client
/oauth/members/{member}/clients/{client} [DELETE]
API Support | Available since | Last updated | Output |
---|---|---|---|
5.8900 | 6.1000 | xml |
Description
Deletes an OAuth client.
A client cannot be deleted while it has webhooks, so you must delete any webhooks associated with the client beforehand.
Deleting the client also has the following effect:
- Invalidate all the tokens issued for that client.
- Remove CORS origin for that client, so you won’t be able to use CORS for origin corresponding to that client unless another client has the same origin.
This service deletes the client permanently and the operation is irreversible.
Parameters
No parameters required.
Permission
Members can only delete their own OAuth clients.
Administrators can delete any client.
Response
If the operation is successful, the response is always the same:
<client-delete/>
Error Handling
HTTP code | Condition |
---|---|
400 | The client cannot be deleted while it has webhooks |
403 | The client is not owned by the member |
404 | Unable to find client |