Skip to main content
POST
/
v1
/
admin
/
operations
/
vehicles
Create a vehicle
curl --request POST \
  --url https://{operatorDomain}/v1/admin/operations/vehicles \
  --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.

Body

application/json
name
string
Example:

"Coach #4"

type
string
Example:

"vehicle"

Response

200 - application/json

Created vehicle

data
object