POST
/
v1
/
teams
/
{team_id}
/
access-policies
Create Access Policy
curl --request POST \
  --url https://public.api.serval.com/v1/teams/{team_id}/access-policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "approvalProcedureId": "<string>",
  "maxAccessMinutes": 123,
  "requireBusinessJustification": true
}'
{
  "accessPolicy": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "maxAccessMinutes": 123,
    "requireBusinessJustification": true
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

team_id
string
required

The ID of the Serval team.

Body

application/json
name
string

The name of the access policy.

description
string

A description of the access policy.

approvalProcedureId
string | null

The ID of the approval procedure associated with this 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.

Response

Success

accessPolicy
object

The created access policy.