Uptimeify Docs
Custom fields

Update Custom Field

Updates a custom field definition. All fields are optional.

PATCH /api/custom-fields/:id

Requires the admin role (or a global admin). Editors and read-only users receive 403.

Request Body (all optional)

FieldTypeDescription
namestringDisplay name, 1 to 100 characters
fieldTypestringOne of text, number, email, url, select
isRequiredbooleanWhether the field is required
displayOrdernumberSort order, integer 0 to 10000
optionsstring[]Options for the select type, max 50 entries of max 100 characters each
placeholderstring|nullPlaceholder text, max 200 characters
helpTextstring|nullHelp text, max 500 characters
showInTablebooleanShow in table views
isActivebooleanSoft delete (set to false)

Example (cURL)

curl -X PATCH "$BASE_URL/api/custom-fields/1" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Environment", "options": ["production", "staging", "development", "qa"] }'

Common errors

  • 400 Bad Request when the body fails validation (unknown fieldType, name over 100 characters, more than 50 options)
  • 403 Forbidden when your role is not admin
  • 404 Not Found when the field does not exist in your organization

Response

Returns the updated custom field object. See Error Codes for error responses.

On this page