OriginChainDB
Database endpoints

Remove a role's grant

Revokes a role's grant on an object, removing every privilege and column mask it carried.

DELETE /v1/tenants/{tenant}/db/grants

Remove a complete role-and-object grantRevocation succeeds even when that grant is already absent.
  1. Identify the role and objectSelect the exact permission grant.
  2. Revoke the grantRemove all its privileges and column masks.
  3. Review remaining effective accessOther grants and inherited roles may still apply.

Before you start

Use your database bearer token.

Connection setup

Use an identity authorized to manage access. Send the target role and object in the DELETE request's JSON body.

Path parameters

FieldTypeRequired
tenantstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • Sent as a JSON body on DELETE (not a query string).
  • Removes the whole grant row;
  • there is no partial-privilege revoke.
  • Succeeds even when no such grant exists.
FieldTypeRequired
objectstringRequired
rolestringRequired

Read the result

revoked: true also succeeds if the grant was absent. This removes the whole role/object grant, including masks; it is not a partial removal of one privilege.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
501Check deployment support for this operation.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd