Skip to main content
POST
/
v2
/
app-instances
Create App Instance
curl --request POST \
  --url https://public.api.serval.com/v2/app-instances \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "teamId": "<string>",
  "service": "<string>",
  "instanceId": "<string>",
  "name": "<string>",
  "defaultAccessPolicyId": "<string>",
  "accessRequestsEnabled": true
}'
{
  "data": {
    "id": "<string>",
    "teamId": "<string>",
    "service": "<string>",
    "instanceId": "<string>",
    "name": "<string>",
    "accessRequestsEnabled": true,
    "defaultAccessPolicyId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
teamId
string

The ID of the team.

service
string

The service of the app instance.

instanceId
string

The instance ID of the app instance.

name
string

The name of the app instance.

defaultAccessPolicyId
string | null

The default access policy for the app instance (optional).

accessRequestsEnabled
boolean

Whether access requests are enabled for the app instance.

Response

Success

data
object

The created app instance.

I