Replace a field's choices.
The whole ordered list is replaced. Choices are text, none blank, none repeated ignoring case, the first not starting with 'select', and for MultiValue none containing ';'. When another field reads the same list, shared_list_policy decides: refuse (the default), fork, or update_shared (only when the caller may edit every template that shares it). 409 conflict when the list changed after the request read it and no If-Match was sent to guard it.
| |
|---|
| Scope | custom_fields:write |
| Asynchronous | No |
| MCP tool | replace_custom_field_template_choices |
| Portal permissions | edit_custom_field_templates |
Parameters
| Name | In | Type | Required | Description |
|---|
custom_field_template_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional | |
Request body
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
Choice
| Field | Type | Required | Description |
|---|
custom_field_id | string | Required | |
key | string | Required | The stored value (the choice text). |
sort_order | integer or null | Required | |
ChoiceReplaceBodyInput
| Field | Type | Required | Description |
|---|
choices | array of string | Required | The complete ordered list: text, none blank, none repeated ignoring case. |
custom_field_id | string | Required | |
shared_list_policy | string or null | Optional | refuse (default), fork (give this field its own list) or update_shared (change the list every field reads). |
ChoiceSet
| Field | Type | Required | Description |
|---|
items | array of Choice | Required | |