Update custom field
PATCH
/api/v1/ext/custom-fields/{id}
Change a custom field's label, type, options, required flag or order.
Auth: Bearer access_token
Scope: contacts.write
Send only what changes. The key never changes, because the values on contacts sit under it — delete the field and create another to rename a key. Switching to select / multi_select needs options in the same call (or already on the field); switching away clears them. Values already on contacts are not rewritten; they are validated against the new type the next time a contact is updated.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | The field id. |
| field_label | body | string | no | Up to 100 characters. |
| field_type | body | enum | no | The new type. |
| options | body | array<string> | no | Replaces the choices of a select / multi_select field. |
| is_required | body | boolean | no | true / false. |
| sort_order | body | number | no | Display position. |
Responses
| Status | When |
|---|---|
200 | OK |
400 | Nothing to change, a key change, a bad type, or a select without options |
401 | Missing or invalid token |
403 | Missing scope |
404 | Custom field does not exist or is not owned by the installer (same response for both) |
RequestResponses
curl -X PATCH "https://backend.mysmsgateway.app/api/v1/ext/custom-fields/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"field_label": "Source",
"options": [
"Web",
"Referral",
"Event",
"Partner"
]
}'OK
{
"success": true,
"message": "Custom field updated",
"data": {
"id": 41,
"workspace_id": 7,
"field_key": "lead_source",
"field_label": "Source",
"field_type": "select",
"options": [
"Web",
"Referral",
"Event",
"Partner"
],
"is_required": false,
"sort_order": 1,
"created_at": "2026-11-04T02:20:00.000Z",
"updated_at": "2026-11-04T03:05:00.000Z"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
The field id.
Body (JSON)
Request URL
PATCHhttps://backend.mysmsgateway.app/api/v1/ext/custom-fields/%7Bid%7D
Previous
« Create custom field
Next
Delete custom field »
