cURL
curl --request POST \ --url https://api.velt.dev/v2/authentication/permissions/remove \ --header 'Content-Type: application/json' \ --header 'x-velt-api-key: <x-velt-api-key>' \ --header 'x-velt-auth-token: <x-velt-auth-token>' \ --data '{ "data": { "userId": "<string>", "permissions": { "resources": [ { "type": {}, "id": "<string>", "organizationId": "<string>" } ] } } }'
{ "result": { "status": "success", "message": "Permissions removed successfully." } }
POST https://api.velt.dev/v2/authentication/permissions/remove
Show properties
Show Resource object
type
document
{ "data": { "userId": "USER_ID", "permissions": { "resources": [ { "type": "organization", "id": "ORGANIZATION_ID" }, { "type": "document", "id": "DOCUMENT_ID", "organizationId": "ORGANIZATION_ID" } ] } } }
{ "error": { "message": "ERROR_MESSAGE", "status": "INVALID_ARGUMENT" } }
Was this page helpful?