Delete custom field
DELETE
/api/v1/ext/custom-fields/{id}
Remove a custom field definition.
Auth: Bearer access_token
Scope: contacts.write
Values already stored under the key stay on the contacts; they just stop being validated, shown and offered in filters. Writing the key on a contact again recreates a text definition.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | The field id. |
Responses
| Status | When |
|---|---|
200 | OK |
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 DELETE "https://backend.mysmsgateway.app/api/v1/ext/custom-fields/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"message": "Custom field deleted",
"data": {
"id": 41,
"workspace_id": 7,
"field_key": "lead_source"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
The field id.
Request URL
DELETEhttps://backend.mysmsgateway.app/api/v1/ext/custom-fields/%7Bid%7D
Previous
« Update custom field
Next
List devices »
