Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

The ID of the request to approve

Body

application/json

Approval parameters

level
enum<string>
required

The decision level for the approval

Available options:
REGULAR,
ADMIN
Example:

"REGULAR"

acting_user_id
string<uuid>

Approve as this Opal user instead of the caller. Only for service users an admin has allowed to act for users, in organizations with the feature enabled. The user must be active in the identity provider and be a reviewer on the request's current stage and not the request's target; the decision counts as theirs. Requests that require MFA to approve, and ADMIN level, are rejected.

comment
string

Optional comment for the approval

Example:

"Approved after security review"

Response

200 - application/json

Request successfully approved

request
object

Request Object

Description

The Request object is used to represent a request.

Usage Example

Returned from the GET Requests endpoint.

Example: