---
search:
  tags:
    - Objects and records
    - PATCH
seo:
  description: >-
    Change a field. Reference for the PATCH
    /api/v1/objects/{objectId}/fields/{fieldId} endpoint in the Taylorz CRM API.
sidebar:
  label: Change a field
  badge: PATCH
title: Change a field
type: openapi-operation
---
`PATCH /api/v1/objects/{objectId}/fields/{fieldId}`

**Request body** (`application/json`, required)

- `key` (string)
- `label` (string)
- `required` (boolean)
- `targetObjectId` (string)
- `type` (string)

Request body example:

```json
{
  "key": "string",
  "label": "string",
  "required": true,
  "targetObjectId": "string",
  "type": "text"
}
```

**Responses**

- `200` — The field as it now stands
- `400` — The request body, query or parameters were refused
- `401` — The access token is missing, invalid or revoked
- `403` — The tenant's module is off, or the token's scope or the member's role does not permit the action
- `404` — No such record, or none the caller may read
- `409` — The operation conflicts with the current state
- `413` — The request exceeds the route's body limit
- `500` — An unexpected failure

Response example, 200:

```json
{
  "definition": {
    "key": "string",
    "label": "string",
    "required": false,
    "visibleByDefault": true,
    "type": "text"
  },
  "id": "string",
  "system": true
}
```
