---
title: "Update custom field"
method: PUT
path: "/custom-fields/field/{customField}"
tags: ["Custom Fields"]
---

# Update custom field

`PUT /custom-fields/field/{customField}`

REQUIRED SCOPES <code>['custom-fields:write']</code><br>This API request allows for modifying data for a specific custom field by id specified in path. <br><br>Properties that you can update are the name of a specific custom field and value type of a specific custom field (text, URL, date, number). <br><br>Additionally, you can update the feature that shows or does not show specific custom fields in сonversations.

## Path parameters

- `customField` integer, required

## Query parameters

- `name` string, required
- `type` 'text' | 'url' | 'date' | 'number', required
- `visible` boolean, required

## Response `200`

OK

- object
  - `status` string
  - `data` CustomFieldResource — Class CustomFieldResource
    - `id` integer
    - `organization_id` integer
    - `key` string
    - `name` string
    - `type` string
    - `visible` integer

## Other responses

- `500` — Error

---

[API](https://skmtc.net/salesmessage/apis/salesmessage-public-api.md) · [All operations](https://skmtc.net/salesmessage/apis/salesmessage-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesmessage/salesmessage-public-api/revisions/e96b3e58b041/schema)
