For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update a contact field

Rename a custom contact field and, for the choice types, replace its option set.

Update a contact field

patch

Rename a custom contact field and, for the choice types, replace its option set.

Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
profileUuidstringRequired

Profile uuid parameter

Example: 550e8400-e09b-41d4-a716-400055000000
fieldUuidstring · uuidRequired

Contact field uuid parameter

Example: 550e8400-e29b-41d4-a716-446655440000
Body

Rename a custom contact field and, for the choice types, replace its option set. The field type and slug are immutable.

labelstring · max: 255RequiredExample: Job title
Responses
200

Success response

application/json
uuidstringOptionalExample: 550e8400-e29b-41d4-a716-446655440000
typestring · enumOptionalExample: textPossible values:
labelstringOptionalExample: Job title
slugstringOptional

Derived from the label on creation and immutable afterwards

Example: job_title
created_atstring · date-timeOptionalExample: 2025-02-27T11:54:22Z
patch/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}
PATCH /api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "label": "Job title",
  "options": [
    {
      "uuid": "text",
      "label": "text"
    }
  ]
}
{
  "uuid": "550e8400-e29b-41d4-a716-446655440000",
  "type": "text",
  "label": "Job title",
  "slug": "job_title",
  "options": [
    {
      "uuid": "550e8400-e29b-41d4-a716-446655440000",
      "label": "Gold",
      "sort_order": 0
    }
  ],
  "created_at": "2025-02-27T11:54:22Z"
}

Last updated

Was this helpful?