Skip to main content
POST
/
v1
/
admin
/
charters
/
yachts
Create yacht
curl --request POST \
  --url https://{operatorDomain}/v1/admin/charters/yachts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "chyc_01h...",
  "name": "<string>",
  "cabins": 123
}
'
{
  "key": "chyc_01h...",
  "name": "<string>",
  "cabins": 123
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Body

application/json
key
string
Example:

"chyc_01h..."

name
string
cabins
integer | null

Response

201 - application/json

Created yacht

key
string
Example:

"chyc_01h..."

name
string
cabins
integer | null