Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Register a new citation source in the document store.- Operation ID:
citations.sources.insert - API member path:
editor.doc.citations.sources.insert(...) - Mutates document:
yes - Idempotency:
non-idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a CitationSourceMutationResult indicating success with the source address or a failure.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
fields | object | yes | |
fields.authors | object[] | no | |
fields.city | string | no | |
fields.doi | string | no | |
fields.edition | string | no | |
fields.editor | object[] | no | |
fields.issue | string | no | |
fields.journalName | string | no | |
fields.medium | string | no | |
fields.pages | string | no | |
fields.publisher | string | no | |
fields.shortTitle | string | no | |
fields.standardNumber | string | no | |
fields.title | string | no | |
fields.translator | object[] | no | |
fields.url | string | no | |
fields.volume | string | no | |
fields.year | string | no | |
type | enum | yes | "book", "journalArticle", "conferenceProceedings", "report", "website", "patent", "case", "statute", "thesis", "film", "interview", "misc" |
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

