Skip to main content
DELETE
/
api
/
access
/
clients
/
{client_profile_id}
/
collections
/
{collection_id}
Revoke Access
curl --request DELETE \
  --url https://api.example.com/api/access/clients/{client_profile_id}/collections/{collection_id} \
  --header 'Authorization: <authorization>'

Authentication

Authorization
string
required
Bearer token: Bearer <admin_token>

Path Parameters

client_profile_id
string
required
The client’s profile ID (UUID)
collection_id
string
required
The collection ID (UUID)

Example Request

curl -X DELETE https://api.sari-platform.com/api/access/clients/client-uuid/collections/collection-uuid \
  -H "Authorization: Bearer <admin_token>"

Response

{
  "message": "Access revoked"
}

What Happens

  1. Access Record Deleted - Entry removed from client_api_access table
  2. Cache Invalidated - Client’s collection list cache cleared
  3. Immediate Effect - Client can no longer access the collection

Errors

StatusDescription
401Invalid or expired token
403Admin access required
404Client, collection, or access grant not found