# Update trip details for trip Id

Endpoint: POST /v3/trips/{tripId}
Version: v2
Security: Bearer

## Security:

  - `Bearer` (unknown)
    http bearer

## Path parameters:

  - `tripId` (string, required)
    Trip ID

## Request fields (application/json):

  - `tripContacts` (array)

  - `tripContacts.label` (string, required)
    Label for the contact
    Example: Coordinator

  - `tripContacts.name` (string, required)
    Name of the contact
    Example: Himani Jain

  - `tripContacts.email` (string)
    Email of the contact
    Example: himani@spotnana.com

  - `tripContacts.phoneNumber` (object)
    Properly formatted phone number.

  - `tripContacts.phoneNumber.countryCode` (integer)
    two digit country code
    Example: 91

  - `tripContacts.phoneNumber.countryCodeSource` (string)
    Enum: "UNSPECIFIED", "FROM_NUMBER_WITH_PLUS_SIGN", "FROM_NUMBER_WITH_IDD", "FROM_NUMBER_WITHOUT_PLUS_SIGN", "FROM_DEFAULT_COUNTRY"

  - `tripContacts.phoneNumber.extension` (string)
    phone number extension
    Example: 222

  - `tripContacts.phoneNumber.isoCountryCode` (string)
    ISO alpha-2 code
    Example: IN

  - `tripContacts.phoneNumber.italianLeadingZero` (boolean)
    Example: true

  - `tripContacts.phoneNumber.nationalNumber` (integer)
    Example: 8150

  - `tripContacts.phoneNumber.numberOfLeadingZeros` (integer)
    Example: 1

  - `tripContacts.phoneNumber.preferredDomesticCarrierCode` (string)
    Example: 7

  - `tripContacts.phoneNumber.rawInput` (string)
    Example: 77777

  - `tripContacts.phoneNumber.type` (string)
    Enum: "UNKNOWN_TYPE", "MOBILE", "LANDLINE"

  - `tripContacts.isPrimary` (boolean)
    Whether the contact is primary or not
    Example: true

  - `tripContacts.restrictVisibility` (boolean)
    Whether to restrict visibility of the contact to only agents and admins
    Example: true

  - `tripCommunicationPreferences` (object)
    Communication preferences for the trip

  - `tripCommunicationPreferences.tripEmailPreferences` (object)
    Email preferences for the trip

  - `tripCommunicationPreferences.tripEmailPreferences.bucketEmailPreferences` (object)
    Email communication preferences based on bucket types.

  - `tripCommunicationPreferences.tripEmailPreferences.bucketEmailPreferences.bucketTypes` (array, required)
    List of email bucket types.

  - `tripCommunicationPreferences.tripEmailPreferences.bucketEmailPreferences.isEnabled` (boolean)
    Indicates whether emails are disabled.

  - `tripCommunicationPreferences.tripEmailPreferences.bucketEmailPreferences.toEmails` (array)
    List of email address to be included in emails.

  - `tripCommunicationPreferences.tripEmailPreferences.bucketEmailPreferences.ccEmails` (array)
    List of email address to be cc-ed in emails.

  - `tripCommunicationPreferences.tripEmailPreferences.bucketEmailPreferences.bccEmails` (array)
    List of email address to be bcc-ed in emails.

## Response 200:

  - `200` (unknown)
    OK

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

## Response 404:

  - `404` (unknown)
    The specified resource was not found.

## Response 404 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

