Skip to main content
POST
/
v2
/
app-resources
Create App Resource
curl --request POST \
  --url https://public.api.serval.com/v2/app-resources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "appInstanceId": "<string>",
  "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.

resourceType
string

The type of the resource.

name
string

The name of the resource.

description
string

A description of the resource.

externalId
string | null

The external ID of the resource (optional).

Response

Success

data
object

The created resource.

I