Skip to main content
PATCH
/
v1
/
admin
/
trips
/
components
/
{componentId}
Update a trip component
curl --request PATCH \
  --url https://{operatorDomain}/v1/admin/trips/components/{componentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "kind": "accommodation",
  "ref": {}
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Path Parameters

componentId
string
required

Body

application/json
kind
string
Example:

"accommodation"

ref
object

Response

200 - application/json

Updated component

data
object