Skip to content
Navigation

Approve a segment from a shared link

POST
https://api.nicer.travel/trip-itinerary/{tripItineraryId}/public/approve-segment

Marks one segment of a shared itinerary as approved by the traveler. Reachable without a token so it works from the traveler's itinerary link, where the itinerary id is the only credential, and rate-limited per IP address.

Authorization

  • bearerAuth
    optional
    HTTP Bearer (JWT)

    Authorization: Bearer <token>

Path parameters

  • tripItineraryId
    string
    required

Request body JSON required

  • segmentId
    string
    required

Returns

200

OK

JSON
  • success
    boolean
    required

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

429

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close