Skip to main content
POST
/
v1
/
admin
/
trips
/
{envelopeId}
/
components
Add a trip component
curl --request POST \
  --url https://{operatorDomain}/v1/admin/trips/{envelopeId}/components \
  --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

envelopeId
string
required

Body

application/json
kind
string
Example:

"accommodation"

ref
object

Response

200 - application/json

Added component

data
object