Create a new access policy for a team.
cURL
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 } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the Serval team.
Success
The response is of type object.
object