resources
Update an existing resource (editor only)
Changed onput/api/books/{slug}/resources/{id}
Request
- The document declares no server URL.
- Authnone declared
Path parameters
slug, string required
Book slug
id, string required
Resource ID
Request body
Update Resource Request required
admin_notes, string nullable
editor_note, string nullable
is_featured, boolean nullable
quoted_text, string nullable
resource_type, 'verbatim' | 'paraphrase' | 'allusion' nullable
Stored as the Postgres enum resource_type.
scope, 'work' | 'language' | 'edition' nullable
Stored as the Postgres enum resource_scope (ADR 0008).
sentence_end, integer nullable
sentence_kind, 'body' | 'footnote' | 'figure' nullable
Stored as the Postgres enum sentence_kind.
sentence_start, integer nullable
source_id, string nullable
source_location_freeform, string nullable
source_page_end, integer nullable
source_page_start, integer nullable
verbatim_kind, 'entirety' | 'fragmentary' nullable
Stored as the Postgres enum verbatim_kind.
Response
Resource updated
Changes
- breaking
the request property
resource_typebecame not nullable - breaking
the request property
scopebecame not nullable - breaking
the request property
sentence_kindbecame not nullable
9 more changes in this revision
- breaking