Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Update the fields of an existing citation source.- Operation ID:
citations.sources.update - API member path:
editor.doc.citations.sources.update(...) - Mutates document:
yes - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a CitationSourceMutationResult indicating success or a failure.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
patch | object | yes | |
patch.authors | object[] | no | |
patch.city | string | no | |
patch.doi | string | no | |
patch.edition | string | no | |
patch.editor | object[] | no | |
patch.issue | string | no | |
patch.journalName | string | no | |
patch.medium | string | no | |
patch.pages | string | no | |
patch.publisher | string | no | |
patch.shortTitle | string | no | |
patch.standardNumber | string | no | |
patch.title | string | no | |
patch.translator | object[] | no | |
patch.url | string | no | |
patch.volume | string | no | |
patch.year | string | no | |
target | object(kind=“entity”) | yes | |
target.entityType | "citationSource" | yes | Constant: "citationSource" |
target.kind | "entity" | yes | Constant: "entity" |
target.sourceId | string | yes |
Example request
Output fields
Variant 1 (source.kind=“entity”)
| Field | Type | Required | Description |
|---|---|---|---|
source | object(kind=“entity”) | yes | |
source.entityType | "citationSource" | yes | Constant: "citationSource" |
source.kind | "entity" | yes | Constant: "entity" |
source.sourceId | string | yes | |
success | true | yes | Constant: true |
Variant 2 (success=false)
| Field | Type | Required | Description |
|---|---|---|---|
failure | object | yes | |
failure.code | string | yes | |
failure.details | any | no | |
failure.message | string | yes | |
success | false | yes | Constant: false |
Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUTCAPABILITY_UNAVAILABLE
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema
Raw success schema
Raw success schema
Raw failure schema
Raw failure schema

