---
title: "Worker CustomField"
method: PATCH
path: "/workers/{workerId}/customfields/{workerCustomFieldId}"
tags: ["Worker"]
---

# Worker CustomField

`PATCH /workers/{workerId}/customfields/{workerCustomFieldId}`

## Request

- Base URL: `https://api.paychex.com`
- URL: `https://api.paychex.com/workers/{workerId}/customfields/{workerCustomFieldId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/paychex/apis/external-api/docs/workers/:workerId/customfields/:workerCustomFieldId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update CustomField at the worker level

## Path parameters

- `workerId` string, required
- `workerCustomFieldId` string, required

## Request body

- WorkerCustomFieldsResource
  - `workerCustomFieldId` string: The unique identifier that is autogenerated when a custom field is created
  - `customFieldId` string: client Custom Field Id
  - `type` 'DROPDOWN' | 'TEXT' | 'BOOLEAN' | 'DATE' | 'NUMERIC, NUMERIC__0_00_ OR NUMERIC__0_0000_': The type of field the custom field is
  - `booleanValue` boolean: The value for BOOLEAN type (true/false)
  - `textValue` string: The value for TEXT type (any text, alphanumeric, special characters allowed)
  - `numericValue` number: Numeric data type can have three formats namely - whole number, second decimal place and fourth decimal place, example: 12 , 12.34 or 12.3456
  - `dateValue` string, date-time: The value for DATE type , example : 2012-02-01T05:00:00Z
  - `dropdownId` string: The unique identifier that is autogenerated when dropdown list is created
  - `dropdownValue` string: The value for dropdown list
  - `customFieldName` string: The name of the custom field. Such as: "Hobbies"
  - `required` boolean: Where to indicate if the custom field is required on the worker where true = required and false = not required
  - `checkStub` boolean: Where to indicate if the custom field is required on the workers pay stub, where true = required and false = not required.
  - `employeeEditable` boolean: Where to indicate if the custom field is able to be edited by the employee, where true = required and false = not required.

## Response `200`

Worker Custom field successfully updated

- object
  - `content` WorkerCustomFieldsResource
    - `workerCustomFieldId` string: The unique identifier that is autogenerated when a custom field is created
    - `customFieldId` string: client Custom Field Id
    - `type` 'DROPDOWN' | 'TEXT' | 'BOOLEAN' | 'DATE' | 'NUMERIC, NUMERIC__0_00_ OR NUMERIC__0_0000_': The type of field the custom field is
    - `booleanValue` boolean: The value for BOOLEAN type (true/false)
    - `textValue` string: The value for TEXT type (any text, alphanumeric, special characters allowed)
    - `numericValue` number: Numeric data type can have three formats namely - whole number, second decimal place and fourth decimal place, example: 12 , 12.34 or 12.3456
    - `dateValue` string, date-time: The value for DATE type , example : 2012-02-01T05:00:00Z
    - `dropdownId` string: The unique identifier that is autogenerated when dropdown list is created
    - `dropdownValue` string: The value for dropdown list
    - `customFieldName` string: The name of the custom field. Such as: "Hobbies"
    - `required` boolean: Where to indicate if the custom field is required on the worker where true = required and false = not required
    - `checkStub` boolean: Where to indicate if the custom field is required on the workers pay stub, where true = required and false = not required.
    - `employeeEditable` boolean: Where to indicate if the custom field is able to be edited by the employee, where true = required and false = not required.
  - `links` Link1[]
    - `href` string
    - `hreflang` string
    - `title` string
    - `type` string
    - `deprecation` string
    - `profile` string
    - `name` string
    - `templated` boolean

## Other responses

- `400`: The request cannot be performed since the worker is in a state which does not allow this action(API-19),Required field missing (API-46), Empty request entity (API-52), File type is not supported (API-62), The document name is invalid (API-63), Service unavailable (API-66)
- `401`: Unauthorized
- `403`: User doesn't have access to this endpoint (API-2), Client has been end dated (API-68)
- `404`: Invalid resource ID (API-7)
- `405`: Unsupported method type (API-59)
- `406`: Unsupported Accept header
- `500`: Internal Server Error.

---

[API](https://skmtc.dev/paychex/apis/external-api.md) - [All operations](https://skmtc.dev/paychex/apis/external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paychex/apis/external-api/revisions/07161d3e073f?raw)
