DELETE
/api/apis/{api_server_id}/scopes/{api_server_scope_id}AuthenticatedDelete an API scope
Deletes one of the API server's scopes. It is no longer granted, and refresh grants stop carrying it forward; access tokens already issued with it keep it until they expire.
operationId
delete_api_apis_api_server_id_scopes_api_server_scope_idAPI serversAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
- Notes
- Organization owners/admins of the owning organization, the owning user of a user-owned API server, or platform administrators.
Path parameters
| Name | Type | Description |
|---|---|---|
| api_server_id* | string | API server id |
| api_server_scope_id* | string (uuid) | Id of the API scope definition |
Responses
application/json
SuccessMessageResponse
| Property | Type | Description |
|---|---|---|
| success* | true | |
| message* | string |
JSONExample
"success"true
"message""string"
Example request
bashcurl
curl -X DELETE 'https://auth.schemavaults.com/api/apis/<api_server_id>/scopes/<api_server_scope_id>' \
-b 'refresh_token_<auth_server_app_id>=<value>'