Skip to main content
PUT
/
v2
/
access-policies
/
{id}
Update Access Policy
curl --request PUT \
  --url https://public.api.serval.com/v2/access-policies/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "maxAccessMinutes": 123,
  "requireBusinessJustification": true,
  "recommendedAccessMinutes": 123
}'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "maxAccessMinutes": 123,
    "requireBusinessJustification": true,
    "recommendedAccessMinutes": 123
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The ID of the access policy.

Body

application/json
name
string

The name of the access policy.

description
string

A description of the access policy.

maxAccessMinutes
integer

The maximum number of minutes that access can be granted for.

requireBusinessJustification
boolean

Whether a business justification is required when requesting access.

The recommended duration in minutes for access requests (optional).

Response

Success

data
object

The updated access policy.