POST /api/v1/trips

POST /api/v1/trips

Body

  • name string | null
  • startAt string(date-time)
  • vacationId integer(int32)

Body

  • name string | null
  • startAt string(date-time)
  • vacationId integer(int32)

Body

  • name string | null
  • startAt string(date-time)
  • vacationId integer(int32)

Responses

  • 200

    OK

curl \
 --request POST 'http://api.example.com/api/v1/trips' \
 --header "Content-Type: application/json" \
 --data '{"name":"string","startAt":"2025-05-04T09:42:00Z","vacationId":42}'
curl \
 --request POST 'http://api.example.com/api/v1/trips' \
 --header "Content-Type: text/json"
curl \
 --request POST 'http://api.example.com/api/v1/trips' \
 --header "Content-Type: application/*+json"
Request examples
{
  "name": "string",
  "startAt": "2025-05-04T09:42:00Z",
  "vacationId": 42
}
Request examples
{
  "name": "string",
  "startAt": "2025-05-04T09:42:00Z",
  "vacationId": 42
}
Request examples
{
  "name": "string",
  "startAt": "2025-05-04T09:42:00Z",
  "vacationId": 42
}