---
title: "Create trip"
method: POST
path: "/v2/trips"
tags: ["Trips"]
---

# Create trip

`POST /v2/trips`

This endpoint creates a trip object. A trip is a container object for all related PNRs associated 
with a trip.

## Request body

- CreateTripRequest — Request body to create a trip, with either userId or registrarId mandatory.
  - `tripName` string, required — Name of the trip.
  - `tripDescription` string — Description of the trip.
  - `userId` UserId — User identifier
    - `id` string, uuid, required
  - `registrarId` UserId — User identifier
    - `id` string, uuid, required
  - `startDate` DateModel — Date in ISO 8601 standard.
    - `iso8601` string, required
  - `endDate` DateModel — Date in ISO 8601 standard.
    - `iso8601` string, required

## Response `201`

Created

- EntityNonUUIDId — Identifier of a non uuid object
  - `id` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/spotnana/apis/trip-api.md) · [All operations](https://skmtc.net/spotnana/apis/trip-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/trip-api/revisions/ccddd94cdc01/schema)
