メインコンテンツまでスキップ

Replace a field's choices.

POST/api/v1/custom-field-templates/{custom_field_template_id}/choices/replacecustom_fields:write
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

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.

スコープcustom_fields:write
非同期いいえ
MCP ツールreplace_custom_field_template_choices
Portal の権限edit_custom_field_templates

パラメーター​

名前場所型必須説明
custom_field_template_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonChoiceReplaceBodyInput

応答​

ステータス説明本文
200Success.application/json ChoiceSet または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

Choice​

フィールド型必須説明
custom_field_idstring必須
keystring必須The stored value (the choice text).
sort_orderinteger または null必須

ChoiceReplaceBodyInput​

フィールド型必須説明
choicesstring の配列必須The complete ordered list: text, none blank, none repeated ignoring case.
custom_field_idstring必須
shared_list_policystring または null任意refuse (default), fork (give this field its own list) or update_shared (change the list every field reads).

ChoiceSet​

フィールド型必須説明
itemsChoice の配列必須