Create field
Create a new incident custom field on the account.
Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 1,000 requests/minute; 50 requests/second per account |
| Permissions | Incidents Manage (on-call) |
Usage
- Maximum 15 custom fields per account.
field_namemust match^[a-zA-Z_][a-zA-Z0-9_]{0,39}$and is immutable after creation;display_namemust also be unique within the account.- Type-specific rules:
checkboxrequiresvalue_type=booland nooptions;single_select/multi_selectrequirevalue_type=stringand a non-empty uniqueoptionslist;textrequiresvalue_type=stringand nooptions. - Response contains only
field_idandfield_name; use/field/infoto fetch the full object. - Audited — changes are recorded in the audit log.
Authorizations
App key issued from the Flashduty console under Account → APP Keys. Required on every public API call. Keep it secret — it grants the same access as the owning account.
Body
Machine name. Must start with a letter or underscore; 1–40 chars of [a-zA-Z0-9_]. Immutable after creation.
39^[a-zA-Z_][a-zA-Z0-9_]{0,39}$Human-readable name. Must be unique within the account.
39Field input type. Immutable after creation.
checkbox, multi_select, single_select, text Stored value type. checkbox requires bool; single_select/multi_select/text require string. Immutable after creation.
string, bool, float Optional free-text description.
499Required and non-empty for single_select/multi_select (unique strings, each 1–200 chars). Must be omitted or empty for checkbox/text.
Optional default value. Type must match field_type: bool for checkbox; one of options for single_select; subset of options for multi_select; string ≤3000 chars for text.
Response
Success
Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.