Override Templates

Before Release 2.1 Universal API had a single template view, and all traveler profiles had the same structure, regardless of the parent to which they were attached. With Release 2.1, the Override Template services allow attributes and groups to be shown or hidden, made optional or mandatory, or made read-only at the Profile level.

Override templates can be used instead of the default template and can be modified by the agency.

Notes: 

How Override Templates work with Default Templates

The implementation of Override Templates means that the Default Template is no longer the CURRENT TEMPLATE for a traveler. Although Universal API does not validate the traveler profile against the template definition, the following applies:

Create Override Templates

The CreateOverrideTemplate service allows the creation of overridden templates. In addition to the Default Template, Override Templates can be created for Travelers at any of these levels:

Override Templates cannot be created at the Agency level because the Agency-level template isthe Default Template.

Note: The creation of Default Templates (Agency creation) remains unchanged.

The basic structure of an Override Template is same as that of the Default Template, with the following customization available:

Only one overridden template can exist at one time for a corresponding owner profile. For example, if there are two Branch-level profiles, Branch1 and Branch2, an overridden template can be defined for each, but neither Branch1 nor Branch2 can have two overridden templates.

Overridden templates can be turned on and off.

Modify Override Templates

The ModifyOverrideTemplate service allows overridden templates to be modified.

Note:  The service to modify Default Templates remains unchanged.

The following can be changed for Fields and Groups in an overridden template:

Additionally, overridden fields and groups can be removed. If the removal is successful, the version of the overridden template is increased by 1.

Note: When a field or group is removed, the data for that field/group is retained in the Universal Profile database.

Retrieve Override Templates

The ProfileRetrieveTemplate service can be used to retrieve both Default and Override Templates. It includes the option to retrieve only the overridden fields in an Overridden Template. See Retrieve Templates for details.

Delete Override Templates

Overridden templates can be deleted using the ProfileDeleteOverrideTemplate service. The deletion of an overridden template has no effect on the profile data. I.e., the profile data is retained even if the overridden template used to create the profile is deleted.

Important! Default template cannot be deleted and that feature remains unchanged.