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_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | FieldTypeCheckRequestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json FieldTypeCheck |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
FieldTypeCheck
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
can_change | boolean | 必須 | Whether the change can be made: every stored value converts, or none needs to. |
converts_values | boolean | 必須 | 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_id | string | 必須 | |
reason | string または 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. |
type | string | 必須 |
FieldTypeCheckRequestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
type | string | 必須 | The type to change the field to, as a field definition names it (numeric, currency, whole_number, date, date_time ...). |