resources

Update an existing resource (editor only)

Changed on
put/api/books/{slug}/resources/{id}

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

slug, string required

Book slug

id, string required

Resource ID

Request body

UpdateResourceRequest 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_type became not nullable

    • breaking

      the request property scope became not nullable

    • breaking

      the request property sentence_kind became not nullable

    9 more changes in this revision