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

Change a cross-reference.

PATCH/api/v1/cross-references/{cross_reference_id}documents:write
注記

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

Only the members sent change: target_document_id, cross_reference_reason_id or description. Needs Edit Document Cross References, an edit grant on the unlocked source document and read access to the old and the new target. The source document cannot be changed: delete the link and create another. A link that would repeat another of the same source, target and reason is 409 already_exists.

スコープdocuments:write
非同期いいえ
MCP ツールupdate_cross_reference
Portal の権限edit_document_cross_references

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonCrossReferencePatchInput
application/merge-patch+jsonCrossReferencePatchInput

応答​

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

スキーマ​

CrossReference​

フィールド型必須説明
cross_reference_idstring必須
cross_reference_reason_idstring または null必須null when the stored reason is empty.
descriptionstring必須
source_document_idstring必須The document the link is made from; the links of a document are outgoing when it is the source and incoming when it is the target.
target_document_idstring または null必須null when the stored target is empty.

CrossReferencePatchInput​

フィールド型必須説明
cross_reference_idstring または null任意
cross_reference_reason_idstring または null任意A reason from GET /cross-reference-reasons.
descriptionstring または null任意Free text, at most 1000 characters; send an empty string to clear it.
source_document_idstring または null任意
target_document_idstring または null任意The document the link points to; you must be able to read it.