# Update trip details for trip Id Endpoint: POST /v3/trips/{tripId} Version: v2 Security: Bearer ## Path parameters: - `tripId` (string, required) Trip ID Example: "6926658168" ## 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) Phone no. of the trip contact - `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 ## 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 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 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 200 fields