PATCH Legacy Labor Metrics

Dayforce RESTful Web Services Developer Guide

Version
R2025.2.1
PATCH Legacy Labor Metrics

Dayforce RESTful services use the PATCH verb to update legacy labor metrics.

Overview

You can update legacy labor metrics using the PATCH Legacy Labor Metric endpoint. The operation uses the following URL:

            https://www.dayforcehcm.com/api/CompanyName/V1/LegacyLaborMetric
        

Parameters

legacyLaborMetricXRefCode (string)

The unique identifier (external reference code) of the legacy labor metric that will be updated. This setting 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. See the Important note above.
  • The URL syntax is:
    https://www.dayforcehcm.com/api/CompanyName/V1/LegacyLaborMetric?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",
  "LegacyLaborMetricType": "string",
  "LegacyLaborMetricXRefCode": "string"
}

Security

Updating a legacy labor metric requires role access to the following role features in the Features tab of System AdminRoles:

  • HCM Anywhere
    • Web Services
      • Patch/Post/Delete Legacy Labor Metric
  • Org Setup
    • Labor Metrics
      • Legacy Labor Metrics
        • HTML Product Group
        • HTML Product Module
        • HTML Project Client
        • HTML Project Phase
        • HTML Project Type