# Create an event template This endpoint creates an event template. Endpoint: POST /v2/event-templates Version: v2 Security: Bearer ## Request fields (application/json): - `name` (string, required) Name of the event template - `description` (string) Description of the event - `location` (object) Location for an event - `location.address` (object) Postal Address Details - `location.address.addressLines` (array, required) Address lines Example: ["Golden Gate Bridge"] - `location.address.administrativeArea` (string) Code of administrative area. For example: DL for Delhi, India. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated. Example: "CA" - `location.address.administrativeAreaName` (string) Name of administrative area. This is full name corresponding to administrativeArea. Like Delhi for DL area code. For some places, code and name maybe same as well like Tokyo. Example: "California" - `location.address.description` (string) Address description Example: "San Francisco Home" - `location.address.isDefault` (boolean) Whether this address is default address in case multiple addresses are specified. Example: true - `location.address.languageCode` (string) BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. Examples: "zh-Hant", "ja", "ja-Latn", "en". Example: "en" - `location.address.locality` (string) Generally refers to the city/town portion of the address. Example: "San Francisco" - `location.address.locationCode` (string) IATA 3-letter location code. See https://www.iata.org/en/services/codes. Example: "LAX" - `location.address.organization` (string) The name of the organization at the address. Example: "Spotnana" - `location.address.postalCode` (string) Postal code of the address. This is a required field when setting for a user/legal entity/company etc. Example: "94130" - `location.address.continentCode` (string) 2 letter continent code of the continent this address falls in. Example: "AF" - `location.address.recipients` (array) The recipient at the address. - `location.address.regionCode` (string, required) Region code of the country/region of the address. Example: "US" - `location.address.regionName` (string) Region name of the country/region of the address. Example: "America" - `location.address.revision` (integer) Example: 1 - `location.address.sortingCode` (string) Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). Example: "Jamaica" - `location.address.sublocality` (string) Sublocality of the address. This can be neighborhoods, boroughs, districts. - `location.address.timezone` (string) Time zone of the address. Example: "America/Los_Angeles" - `location.address.coordinates` (object) Map coordinates of the address. - `location.address.coordinates.latitude` (number, required) Latitude of the Location Example: 77.1025 - `location.address.coordinates.longitude` (number, required) Longitude of the Location Example: 28.7041 - `location.coordinates` (object) Latitude and Longitude for a Location - `allowedBookingTypes` (array) Allowed booking types for the event template Enum: "AIR", "HOTEL", "CAR", "RAIL" - `bookingGuidelines` (array) A list of booking guideline for the event. - `customFieldV3Responses` (array) List of custom field responses for an event. - `customFieldV3Responses.fieldId` (string, required) Custom field id - `customFieldV3Responses.fieldName` (string) Name of the custom field - `customFieldV3Responses.armId` (string, required) Arm id which is applicable - `customFieldV3Responses.readOnly` (boolean) Indicates whether the user can change the pre-selected options. Example: true - `customFieldV3Responses.hidden` (boolean) Whether this code will be hidden to the user. Example: true - `customFieldV3Responses.selectedOptions` (array, required) The list of options that are selected by user or auto populated. - `customFieldV3Responses.selectedOptions.name` (string, required) Value of the selection - `customFieldV3Responses.selectedOptions.description` (string) Description of the selection - `customFieldV3Responses.selectedOptions.additionalUserInput` (string) Additional user input - `customFieldV3Responses.selectedOptions.additionalInfos` (array) Actual values of the additional infos - `customFieldV3Responses.selectedOptions.additionalInfoConfigs` (array) Additional info configs for the selected option - `paymentMappings` (array) Mappings i.e. access level, travel type information etc. - `paymentMappings.id` (string, required) Unique identifier identifying this payment source Example: "f49d00fe-1eda-4304-ba79-a980f565281d" - `paymentMappings.accessTypeAttributes` (object) Attributes applicable to the access type for this mapping. - `paymentMappings.accessTypeAttributes.travelTypeFilter` (object) Filter for selecting payment sources according to different types of travel. - `paymentMappings.accessTypeAttributes.travelTypeFilter.travelTypes` (array) Applicable travel types for Payment Source. - `paymentMappings.accessTypeAttributes.travelTypeFilter.travelTypes.travelType` (string, required) Applicable travel segment type, e.g. AIR, HOTEL etc. Enum: "AIR", "HOTEL", "CAR", "RAIL", "LIMO", "MISC", "ALL" - `paymentMappings.accessTypeAttributes.travelTypeFilter.travelTypes.isRequired` (boolean) Whether this is a required payment source for this travel type. - `paymentMappings.accessTypeAttributes.travelTypeFilter.travelTypes.allowPostPaidBookings` (boolean) Whether post paid bookings are allowed for this travel type. - `paymentMappings.accessTypeAttributes.travelTypeFilter.travelTypes.metadata` (any) - `companyId` (object, required) Company id - `companyId.id` (string, required) Example: "f49d00fe-1eda-4304-ba79-a980f565281d" - `internalNotes` (string) Internal notes of the event Example: "Use travelers default as payment method." - `referenceUsers` (array) Event group reference user ids - `travelerTypes` (array, required) Allowed traveler types for the event Enum: "UNKNOWN_PERSONA", "EMPLOYEE", "GUEST", "PERSONAL", "RELATIVE", "ADHOC" - `policyId` (string) Policy associated with the event. Example: "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b" - `bookingStyle` (string, required) Whether the event bookings will be self served by the traveler or would be arranged by an agent for the traveler. Enum: "SELF_SERVE", "AGENT_MANAGED" - `externalId` (string) External Id for the event Example: "qwert123" - `allowTravelersPolicy` (string) Apply travelers policy when it is less restrictive. Enum: "ALLOWED", "NOT_ALLOWED" - `emailPreferences` (object) Email communication preferences based on bucket types. - `emailPreferences.bucketTypes` (array, required) List of email bucket types. Enum: "BOOKING_CONFIRMATIONS", "BOOKING_CHANGES", "FLIGHT_UPDATES", "APPROVAL_REQUESTS", "APPROVAL_UPDATES", "REMINDERS", "INVOICE_UPDATES" - `emailPreferences.isEnabled` (boolean) Indicates whether emails are disabled. - `emailPreferences.toEmails` (array) List of email address to be included in emails. Example: ["example@email.com"] - `emailPreferences.ccEmails` (array) List of email address to be cc-ed in emails. Example: ["example@email.com"] - `emailPreferences.bccEmails` (array) List of email address to be bcc-ed in emails. Example: ["example@email.com"] - `allowTravelersToRsvp` (string) Allow travelers to rsvp for the event Enum: "ALLOWED", "NOT_ALLOWED" - `tripOverrides` (object) Trip overrides for the event - `tripOverrides.legalEntity` (object, required) Legal entity override - `tripOverrides.legalEntity.behavior` (string, required) Override behavior for the trip overrides Enum: "OVERRIDE_ALLOWED", "OVERRIDE_NOT_ALLOWED", "OVERRIDE_MANDATORY" - `tripOverrides.legalEntity.legalEntityRef` (object) Reference of an entity - `tripOverrides.legalEntity.legalEntityRef.name` (string) Example: "Name" - `tripOverrides.costCenter` (object, required) Cost center override - `tripOverrides.costCenter.costCenterRef` (object) Reference of an entity - `tripOverrides.department` (object, required) Department override - `tripOverrides.department.departmentRef` (object) Reference of an entity - `tripOverrides.userAttributes` (array, required) List of company specified attribute overrides - `tripOverrides.userAttributes.attribute` (object, required) Company specified user arbitrary attribute. - `tripOverrides.userAttributes.attribute.fixedColumnName` (string, required) Example: "contingentType" - `tripOverrides.userAttributes.attribute.value` (string) Example: "FSTV" - `tripOverrides.rateCodeOverrides` (array) List of rate codes to be overridden for a trip - `tripOverrides.rateCodeOverrides.supplier` (string) Supplier type like Sabre, TravelFusion etc. Enum: "SABRE", "AMADEUS", "TRAVEL_FUSION", "FARELOGIX_NDC", "ATPCO_NDC", "TRAINLINE", "AVIA", "QBR", "BCD", "QANTAS_HOTELS", "SOUTHWEST", "EXPEDIA", "HOTEL_HUB", "NDC", "MARRIOTT", "CLEARTRIP", "KYTE", "GROUNDSPAN", "SABRE_NDC", "BOOKING_COM", "CARTRAWLER", "PREMIER_INN", "TRAVELODGE" - `tripOverrides.rateCodeOverrides.travelType` (string) Travel Type Enum: "AIR", "HOTEL", "CAR", "RAIL", "LIMO", "MISC", "ALL" - `tripOverrides.rateCodeOverrides.rateCodeIds` (array) List of rate code ids Example: ["f49d00fe-1eda-4304-ba79-a980f565281d"] - `inviteEmailConfig` (object) Configuration for event invite/reminder emails - `inviteEmailConfig.emailExcludeCoordinatorInfo` (boolean) Whether to exclude coordinator information in emails sent to travelers. Example: true - `customFieldResponses` (array) Preselected custom field responses for the event template. - `customFieldResponses.customFieldId` (string, required) The unique identifier for the custom field. Example: "f49d00fe-1eda-4304-ba79-a980f565281d" - `customFieldResponses.responseItems` (array) Responses selected by the event coordinator. - `customFieldResponses.responseItems.response` (string, required) The response of the custom field. It can be a text input from the user or a custom field code if the input is from a radio button or checkbox. Example: "Leisure travel" - `customFieldResponses.responseItems.additionalInput` (string) This contains additional input to the above response. It will only be used for checkbox with percentage and will contain the percentage value. Example: "20" - `customFieldResponses.travelerAccess` (string, required) Traveler access for the given custom field. Enum: "HIDDEN", "READ_ACCESS", "WRITE_ACCESS" ## Response 200 fields (application/json): - `id` (string) Example: "some-id" ## Response 400 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 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.