Skip to main content
POST
Approve or reject an approval

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.

Path Parameters

id
string
required

The approval's id.

Body

application/json
approve
boolean
required
reason
string
required

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.