Update (PUT) Labor Code

Use this API to update a single labor code from Account Configuration.

To update a labor code:

Execute a PUT command on the endpoint {{url}}/accountConfiguration/laborCode/<code>, where the code variable is replaced by the two character alphanumeric ID of the labor code you want to update.

For example, here is a request, using cURL, to update an existing labor code by setting the variable code to AA and supplying a new description.

curl --request PUT \
  --url 'https://{{url}}/accountConfiguration/laborCode/AA' \
  --header 'authorization: Bearer {{oauth_token}}' \
  --header 'content-type: application/json'
  --data   '{
"Description": "General"
} '

The call returns the JSON representation of the updated labor code, for example:

[
  {
        "LCLevel": 3,
        "Code": "AA",
        "Description": "General"
  }
]