Dayforce RESTful services use the PATCH verb to update labor metric codes.
Overview
You can update labor metrics data using the PATCH Labor Metrics endpoint. The operation uses the following URL:
https://www.dayforcehcm.com/api/CompanyName/V1/LaborMetrics
Parameters
isValidateOnly (boolean)
- Used to specify that all of the validations need to be performed without committing any changes.
- Use this parameter to control whether committing information to your instance of Dayforce is your responsibility.
- The URL syntax is: https://www.dayforcehcm.com/api/CompanyName/V1/LaborMetrics?isValidateOnly=true
Request Body
The request body contains the data entities and elements that need to be processed within a structure that can be interpreted by Dayforce web services. The example below shows all of the possible fields in the correct JSON format.
{
"ShortName": "string",
"LongName": "string",
"EffectiveFrom": "2022-01-07T18:57:33.897Z",
"EffectiveEnd": "2022-01-07T18:57:33.897Z",
"LaborMetricsCodeXRefCode": "string",
"ClockTransferCode": "string",
"LedgerCode": "string",
"OrgUnitXRefCodes": [
"string"
],
"LaborMetricsTypeXRefCode": "string",
"IsDeleted": true
}
Security
Updating the details of an existing labor metric code requires role access to the HCM Anywhere > Web Services > Patch/Post Labor Metrics Code role feature in the Features tab of System Admin > Roles.