POST Legacy Labor Metrics

Dayforce RESTful Web Services Developer Guide

Version
R2025.2.1
ft:lastPublication
2025-11-05T18:19:39.327058
POST Legacy Labor Metrics

Dayforce RESTful services use the POST verb to create an instance of the resource. In the case of the Legacy Labor Metric resource, POST refers to creating a new legacy labor metric.

Endpoint URL

The URL for POST Legacy Labor Metric uses the following base URL:

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

Important: This request writes data into Dayforce. When using this request, be sure that the consuming application/requester is using the correct Dayforce instance (for example, Test or Production). Watch out for inadvertently updating the wrong instance of Dayforce (for example, inserting test data in a production instance).

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. 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 values that need to be inserted into the available data entities. The example below shows all of the possible fields in the correct JSON format:

{
  "ShortName": "string",
  "LongName": "string",
  "LegacyLaborMetricType": "string",
  "LegacyLaborMetricXRefCode": "string"
}

Security

Creating a new 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