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

Replace the matrix rules of a Matrix Calculation field.

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

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

The whole table is replaced, in array order; an empty list clears it. The two axis fields must be other fields of the template and be the same for every rule.

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

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonMatrixRuleSetBodyInput

応答​

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

スキーマ​

MatrixAxis​

フィールド型必須説明
custom_field_idstring必須

MatrixAxisInput​

フィールド型必須説明
custom_field_idstring任意

MatrixRule​

フィールド型必須説明
a_conditionstring必須
a_operatorstring必須= (the whole value) or in (a range or a list).
axis_aMatrixAxis必須
axis_bMatrixAxis必須
b_conditionstring必須
b_operatorstring必須
colourstring または null必須
custom_field_idstring必須The Matrix Calculation field the rule belongs to.
matrix_rule_idstring必須
sort_orderinteger必須The rule's position in the field's table (its stored order). ≥ -2147483648; ≤ 2147483647
valuestring必須

MatrixRuleSet​

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

MatrixRuleSetBodyInput​

フィールド型必須説明
custom_field_idstring必須
rulesMatrixRuleWriteInput の配列任意The whole table in order; an empty list clears it.

MatrixRuleWriteInput​

フィールド型必須説明
a_conditionstring必須
a_operatorstring必須
axis_aMatrixAxisInput必須
axis_bMatrixAxisInput必須
b_conditionstring必須
b_operatorstring必須
colourstring または null任意
valuestring必須