Skip to main content
POST
/
v2
/
app-resources
/
batch
Batch Create App Resources
curl --request POST \
  --url https://public.api.serval.com/v2/app-resources/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "appInstanceId": "<string>",
  "resources": [
    {
      "resourceType": "<string>",
      "name": "<string>",
      "description": "<string>",
      "externalId": "<string>"
    }
  ]
}
'
{
  "data": [
    {
      "id": "<string>",
      "appInstanceId": "<string>",
      "resourceType": "<string>",
      "name": "<string>",
      "description": "<string>",
      "externalId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
appInstanceId
string

The ID of the app instance to create resources under.

resources
CreateAppResourceInput · object[]

The resources to create.

Response

Success

data
Resource · object[]

The created resources.