# Update Custom Field

{% hint style="warning" %}
All API requests should contain [authorization headers](https://developers.socialboards.com/docs/apis/tickets/authorization-headers).
{% endhint %}

#### Request&#x20;

```
PATCH /customFields/{CustomFieldId}
```

#### Query Parameters

<table><thead><tr><th>Name</th><th width="100">Type</th><th width="100">Required</th><th>Comments</th></tr></thead><tbody><tr><td>CustomFieldId</td><td>integer</td><td>yes</td><td>Id of custom field you want to update</td></tr></tbody></table>

**Request Body**

Body of request should contain[ Custom field](https://developers.socialboards.com/docs/apis/tickets/reference/objects/custom-field) model serialized to JSON.

```json
{
    "assignedCategoryIds": [],
    "defaultValue": "Everything fine",
    "id": 26707,
    "isHidden": false,
    "isRequired": false,
    "isSensitiveData": false,
    "name": "Client Comment",
    "placeholder": "Client Comment",
    "possibleValues": null,
    "type": "text_input"
}
```

#### Response

```json
{
    "data": {
        "assignedCategoryIds": [],
        "defaultValue": "Everything fine",
        "id": 26707,
        "isHidden": false,
        "isRequired": false,
        "isSensitiveData": false,
        "name": "Client Comment",
        "placeholder": "Client Comment",
        "possibleValues": [],
        "type": "text_input"
    },
    "errorCode": -1,
    "errorText": null
}
```

`Data` field has type of [Custom Field](https://developers.socialboards.com/docs/apis/tickets/reference/objects/custom-field) object.
