Service Directory > v31.2 > Resource_Management > Put_Travel_City
 

Operation: Put_Travel_City

Creates or modifies a Travel City. Creates a new Travel City, if no ID is provided, or modifies an existing Travel City, if a valid ID is provided.


@ - A parameter name with this symbol denotes an XML attribute within the document instead of an XML element.


Contents

 

Web Service

 

Request

 

Response

 

Element(s)

 

Request Element: Put_Travel_City_Request

Element containing Travel City reference for update and all Travel City data items
 
Parameter name Type/Value Cardinality Description Validations
@version string [0..1] Web Service version  
@Add_Only  boolean  [1..1]  Add Only   
Travel_City_Reference  Travel_CityObject  [0..1]  Travel City Reference   
Travel_City_Data  Travel_City_Data  [1..1]  Travel City Data 
Validation Description
The combination of Data Value "[value]", Country Region [country region], and Country [country] for Travel City is already in use.  Travel Cities with the same Data Value, Country Region, and Country combination is not allowed. 
 
Validation Description
The Web Service is set to Add Only; but the Travel City already exists.  Create a new Travel City, or change 'Add Only' to 'false' to edit the existing Travel City. 
top
 

Response Element: Put_Travel_City_Response

Element containing the Travel City Reference and Data that is sent in the response
 
Parameter name Type/Value Cardinality Description Validations
@version string [0..1] Web Service version  
Travel_City_Reference  Travel_CityObject  [0..1]  Travel City Reference   
top
 

Travel_CityObject

part of: Put_Travel_City_Request, Put_Travel_City_Response
 
Parameter name Type/Value Cardinality Description Validations
@Descriptor  string  [1..1]  Display information used to describe an instance of an object. This 'optional' information is for outbound descriptive purposes only and is not processed on inbound Workday Web Services requests.   
ID  Travel_CityObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

Travel_CityObjectID

part of: Travel_CityObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  WID, Spend_Data_ID, Travel_City_ID  [1..1]  The unique identifier type. Each "ID" for an instance of an object contains a type and a value. A single instance of an object can have multiple "ID" but only a single "ID" per "type".   
top
 

Travel_City_Data

part of: Put_Travel_City_Request
Element that contains Travel City Data
 
Parameter name Type/Value Cardinality Description Validations
Spend_Data_ID  string  [0..1]  Travel City ID   
Travel_City_Value  string  [1..1]  Travel City Value   
Travel_Region_Reference  Country_RegionObject  [0..1]  Reference to a Travel Region. 
Validation Description
Travel Region [region] is invalid for Country [country].  The Travel Region and Country combination must be valid. 
 
Country_Reference  CountryObject  [0..1]  Reference to a Country.   
Alternate_Travel_City_Name  Travel_City_Alternate_Name_Data  [0..*]  Element used to specify alternate names. 
Validation Description
There can't be duplicate alternate city names per Country.   
Enter a unique Travel City name. [travel_city] is already in use as an alternate name.   
Enter a unique Travel City. [alternate_name] is already in use as an alternate name.   
 
Inactive  boolean  [0..1]  Inactive   
Validation Description
The combination of Data Value "[value]", Country Region [country region], and Country [country] for Travel City is already in use.  Travel Cities with the same Data Value, Country Region, and Country combination is not allowed. 
top
 

Country_RegionObject

part of: Travel_City_Data
 
Parameter name Type/Value Cardinality Description Validations
@Descriptor  string  [1..1]  Display information used to describe an instance of an object. This 'optional' information is for outbound descriptive purposes only and is not processed on inbound Workday Web Services requests.   
ID  Country_RegionObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

Country_RegionObjectID

part of: Country_RegionObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  WID, Country_Region_ID, ISO_3166-2_Code  [1..1]  The unique identifier type. Each "ID" for an instance of an object contains a type and a value. A single instance of an object can have multiple "ID" but only a single "ID" per "type".   
top
 

CountryObject

part of: Travel_City_Data
 
Parameter name Type/Value Cardinality Description Validations
@Descriptor  string  [1..1]  Display information used to describe an instance of an object. This 'optional' information is for outbound descriptive purposes only and is not processed on inbound Workday Web Services requests.   
ID  CountryObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

CountryObjectID

part of: CountryObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  WID, ISO_3166-1_Alpha-2_Code, ISO_3166-1_Alpha-3_Code, ISO_3166-1_Numeric-3_Code  [1..1]  The unique identifier type. Each "ID" for an instance of an object contains a type and a value. A single instance of an object can have multiple "ID" but only a single "ID" per "type".   
top
 

Travel_City_Alternate_Name_Data

part of: Travel_City_Data
Element used to specify alternate names.
 
Parameter name Type/Value Cardinality Description Validations
Spend_Data_Alternate_Name_Reference  Unique_IdentifierObject  [0..1]  Reference to the Alternate Name of Travel City.   
Alternate_Name  string  [1..1]  Travel city alternate name.   
Validation Description
There can't be duplicate alternate city names per Country.   
Enter a unique Travel City name. [travel_city] is already in use as an alternate name.   
Enter a unique Travel City. [alternate_name] is already in use as an alternate name.   
top
 

Unique_IdentifierObject

part of: Travel_City_Alternate_Name_Data
 
Parameter name Type/Value Cardinality Description Validations
@Descriptor  string  [1..1]  Display information used to describe an instance of an object. This 'optional' information is for outbound descriptive purposes only and is not processed on inbound Workday Web Services requests.   
ID  Unique_IdentifierObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

Unique_IdentifierObjectID

part of: Unique_IdentifierObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  IID, WID  [1..1]  The unique identifier type. Each "ID" for an instance of an object contains a type and a value. A single instance of an object can have multiple "ID" but only a single "ID" per "type".   
top
 

Travel_CityReferenceEnumeration

part of: Travel_CityObjectID
Base Type
string
top
 

Country_RegionReferenceEnumeration

part of: Country_RegionObjectID
Base Type
string
top
 

CountryReferenceEnumeration

part of: CountryObjectID
Base Type
string
top
 

Unique_IdentifierReferenceEnumeration

part of: Unique_IdentifierObjectID
Base Type
string
top