Dayforce RESTful services use the PATCH verb to update labor metric types.
Overview
You can update labor metrics data using the PATCH Labor Metric Types endpoint. The operation uses the following URL:
https://www.dayforcehcm.com/api/CompanyName/V1/LaborMetricTypes
Parameters
laborMetricTypeXRefCode (string)
The unique identifier (external reference code) of the labor metric type to be updated. The value provided must be the exact match for a labor metric type. Otherwise, a bad request (400) error will be returned.
This parameter is required.
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/LaborMetricTypes?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",
"LaborMetricTypeXRefCode": "string",
"ClockTransferCode": "string",
"IsDeleted": true
}
Security
Updating the details of an existing labor metric type requires role access to the HCM Anywhere > Web Services > Patch/Post Labor Metrics Type role feature in the Features tab of System Admin > Roles.