Skip to main content
PATCH
/
v1
/
admin
/
operations
/
resources
/
{id}
Update a resource
curl --request PATCH \
  --url https://{operatorDomain}/v1/admin/operations/resources/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Coach #4",
  "type": "vehicle"
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Path Parameters

id
string
required

Body

application/json
name
string
Example:

"Coach #4"

type
string
Example:

"vehicle"

Response

200 - application/json

Updated resource

data
object