Service Directory > v31.2 > Human_Resources > Put_Work_Shift
 

Operation: Put_Work_Shift

This operation adds or updates a Work Shift.


@ - 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_Work_Shift_Request

Contains data for adding or updating a Work Shift.
 
Parameter name Type/Value Cardinality Description Validations
@version string [0..1] Web Service version  
@Add_Only  boolean  [1..1]  Add Only Flag. Indicates that the service is an add only, not an update.   
Work_Shift_Reference  Work_ShiftObject  [0..1]  Reference to an existing Work Shift. Only needed when updating a reference id on the Work Shift.   
Work_Shift_Data  Work_Shift_Data  [1..1]  Element containing all Work Shift data.   
Validation Description
Add Only is true but the Work Shift ID is already in use.   
top
 

Response Element: Put_Work_Shift_Response

Element Containing Put Work Shift Response Data
 
Parameter name Type/Value Cardinality Description Validations
@version string [0..1] Web Service version  
Work_Shift_Reference  Work_ShiftObject  [0..1]  Reference to a Work Shift.   
top
 

Work_ShiftObject

part of: Put_Work_Shift_Request, Put_Work_Shift_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  Work_ShiftObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

Work_ShiftObjectID

part of: Work_ShiftObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  WID, Work_Shift_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
 

Work_Shift_Data

part of: Put_Work_Shift_Request
Element containing all Work Shift data.
 
Parameter name Type/Value Cardinality Description Validations
Work_Shift_ID  string  [0..1]  Work Shift ID. This is the unique identifier for a Work Shift.   
Work_Shift_Name  string  [0..1]  Name for the Work Shift. 
Validation Description
Work Shift Name is required.   
 
Work_Shift_Description  string  [0..1]  Description of the Work Shift.   
Location_Reference  Location_ContextObject  [0..1]  Location Reference. Reference to a Country or Country Region. 
Validation Description
Location (Country or Country Region) is required.   
The Location cannot be changed for an existing Work Shift.   
 
Inactive  boolean  [0..1]  Flag indicating whether the Work Shift is inactive.   
top
 

Location_ContextObject

part of: Work_Shift_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  Location_ContextObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

Location_ContextObjectID

part of: Location_ContextObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  WID, Country_Region_ID, Country_Subregion_Code_In_Country, Country_Subregion_Internal_ID, ISO_3166-1_Alpha-2_Code, ISO_3166-1_Alpha-3_Code, ISO_3166-1_Numeric-3_Code, 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".   
@parent_id  string  [1..1]  Contains a unique identifier for an instance of a parent object   
@parent_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 of a parent object   
top
 

Work_ShiftReferenceEnumeration

part of: Work_ShiftObjectID
Base Type
string
top
 

Location_ContextReferenceEnumeration

part of: Location_ContextObjectID
Base Type
string
top
 

Base Type
string

top