Skip to content
Navigation

Upload an itinerary PDF for import

POST
https://api.nicer.travel/trip-itinerary/{tripItineraryId}/documents

Starts importing an itinerary PDF: returns a presigned S3 form that the browser posts one PDF of up to 25 MB to. Once it is uploaded, the segments read from the PDF are added to the itinerary (mode merge) or replace its segments (mode replace). Requires the trip's advisor or an admin.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • tripItineraryId
    string
    required

Request body JSON required

  • mode
    optional
    merge
    or
    replace
    default: "merge"

Returns

200

OK

JSON
  • key
    string
    required
  • presignedPost
    object
    required
    • url
      string
      required

      Where to post the form.

    • fields
      map of
      string
      required

      The form fields to send, as they are, before the file.

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

Type to search…

↑↓ navigate↵ selectEsc close