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

Check that a field's stored values convert to another type.

POST/api/v1/custom-fields/{custom_field_id}/check-typecustom_fields:read
注記

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

Asks, as the template editor does before a type change, whether every value stored in the field converts to the type; update_custom_field_template refuses the change when one does not. Nothing is changed and no value is shown. Types that store text convert nothing, so the answer is can_change true with converts_values false. Needs Edit Custom Field Templates, as the template editor does.

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

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonFieldTypeCheckRequestInput

応答​

ステータス説明本文
200Success.application/json FieldTypeCheck
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
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 のコードです。各コードからそのページに移動できます。

スキーマ​

FieldTypeCheck​

フィールド型必須説明
can_changeboolean必須Whether the change can be made: every stored value converts, or none needs to.
converts_valuesboolean必須Whether the change converts the values stored in the field (a change to a number, currency, date or register reference does; to a text type it does not).
custom_field_idstring必須
reasonstring または null必須Why it cannot: values_do_not_convert (a stored value does not convert; change or clear those values first) or column_missing (the field's column is missing from its register's table). Null when it can.
typestring必須

FieldTypeCheckRequestInput​

フィールド型必須説明
typestring必須The type to change the field to, as a field definition names it (numeric, currency, whole_number, date, date_time ...).