Skip to main content
POST
/
v1
/
admin
/
trips
/
{envelopeId}
/
components
/
reorder
Reorder trip components
curl --request POST \
  --url https://{operatorDomain}/v1/admin/trips/{envelopeId}/components/reorder \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "componentIds": [
    "cmp_a",
    "cmp_b"
  ]
}
'
{
  "data": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Path Parameters

envelopeId
string
required

Body

application/json
componentIds
string[]
required
Example:
["cmp_a", "cmp_b"]

Response

200 - application/json

Reordered components

data
object[]