Skip to main content

Change a cross-reference.

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

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.

Scopedocuments:write
AsynchronousNo
MCP toolupdate_cross_reference
Portal permissionsedit_document_cross_references

Parameters​

NameInTypeRequiredDescription
cross_reference_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonCrossReferencePatchInput
application/merge-patch+jsonCrossReferencePatchInput

Responses​

StatusDescriptionBody
200Success.application/json CrossReference or 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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

CrossReference​

FieldTypeRequiredDescription
cross_reference_idstringRequired
cross_reference_reason_idstring or nullRequirednull when the stored reason is empty.
descriptionstringRequired
source_document_idstringRequiredThe 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 or nullRequirednull when the stored target is empty.

CrossReferencePatchInput​

FieldTypeRequiredDescription
cross_reference_idstring or nullOptional
cross_reference_reason_idstring or nullOptionalA reason from GET /cross-reference-reasons.
descriptionstring or nullOptionalFree text, at most 1000 characters; send an empty string to clear it.
source_document_idstring or nullOptional
target_document_idstring or nullOptionalThe document the link points to; you must be able to read it.