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

Create a cross-reference from a document.

POST/api/v1/documents/{document_id}/cross-referencesdocuments:write
注記

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

Needs Create Document Cross References, an edit grant on the unlocked source document and read access to the target. The target and reason are validated (422). A link that already exists is 409 already_exists.

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

パラメーター​

名前場所型必須説明
document_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonCrossReferenceCreateInput

応答​

ステータス説明本文
201Success.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, idempotency_in_progress, lockedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_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.

CrossReferenceCreateInput​

フィールド型必須説明
cross_reference_reason_idstring必須A reason from GET /cross-reference-reasons.
descriptionstring または null任意Free text, at most 1000 characters.
target_document_idstring必須The document the link points to.