myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

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

NameInTypeRequiredDescription
id
path
number
yes
The field id.
field_label
body
stringnoUp to 100 characters.
field_type
body
enumnoThe new type.
options
body
array<string>noReplaces the choices of a select / multi_select field.
is_required
body
booleannotrue / false.
sort_order
body
numbernoDisplay position.

Responses

StatusWhen
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)
Request
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"
  ]
}'
Responses
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 »