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.

Body

application/json

Resources to be updated

All the information needed for creating a request

resources
object[]
required
groups
object[]
required
reason
string
required
duration_minutes
integer
required

The duration of the request in minutes. -1 represents an indefinite duration

Required range: x >= -1
target_user_id
string<uuid>

The ID of the user to be granted access. Should not be specified if target_group_id is specified.

Example:

"userd283-ca87-4a8a-bdbb-df212eca5353"

target_group_id
string<uuid>

The ID of the group the request is for. Should not be specified if target_user_id is specified.

Example:

"userd283-ca87-4a8a-bdbb-df212eca5353"

initiated_by_user_id
string<uuid>

The ID of the user who asked for this access, for callers filing a request on someone else's behalf. Opal records this claim as given and does not verify it, so it never affects authorization, reviewer routing, or who may cancel the request; the authenticated caller remains the requester. Must be a user of your organization. Only accepted from a service user for which an Opal admin has enabled "Let this service user record who asked for access" under Settings on the service user's page; any other caller receives a 403 when this field is set.

Example:

"userd283-ca87-4a8a-bdbb-df212eca5353"

support_ticket
object
custom_metadata
object[]

Response

200 - application/json

The resulting request.

id
string<uuid>
Example:

"4baf8423-db0a-4037-a4cf-f79c60cb67a5"

Last modified on October 8, 2026