Skip to content

Update trip details for trip Id

Request

Security
Bearer
Path
tripIdstringrequired

Trip ID

Example:6926658168
Bodyapplication/json
tripContactsArray of objects(TripContact)
tripCommunicationPreferencesobject(TripCommunicationPreferences)

Communication preferences for the trip

curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v3/trips/6926658168 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "tripContacts": [
      {
        "label": "Coordinator",
        "name": "Himani Jain",
        "email": "himani@spotnana.com",
        "phoneNumber": {
          "countryCode": 91,
          "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
          "extension": "222",
          "isoCountryCode": "IN",
          "italianLeadingZero": true,
          "nationalNumber": 8150,
          "numberOfLeadingZeros": 1,
          "preferredDomesticCarrierCode": "7",
          "rawInput": "77777",
          "type": "MOBILE"
        },
        "isPrimary": true,
        "restrictVisibility": true
      }
    ],
    "tripCommunicationPreferences": {
      "tripEmailPreferences": {
        "bucketEmailPreferences": {
          "bucketTypes": [
            "BOOKING_CONFIRMATIONS"
          ],
          "isEnabled": false,
          "toEmails": [
            "example@email.com"
          ],
          "ccEmails": [
            "example@email.com"
          ],
          "bccEmails": [
            "example@email.com"
          ]
        }
      }
    }
  }'

Responses

OK

Response
No content