Skip to main content
POST
Grant or revoke a system grant

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Nexio-Act-As
string

The person the request is made for (a WorkOS user id).

Nexio-Act-As-Email
string

The acting person's verified email, lowercased. Ignored without Nexio-Act-As.

Body

application/json
email
string
required
grant
string
required
reason
string
required
operator
string

The operator the calling app names, recorded in the audit snapshot; never trusted as the actor.

revoke
boolean

Response

OK

action
string
required

The audit action the change recorded.

data
object
required
before
any

The state the change replaced, as the audit recorded it, when there was one.

principal
string

The person the change is about.

request_id
string

The request's id, as logged.