sources

Update an existing source

Changed on
put/api/sources/{id}

Request

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

Path parameters

id, string required

Source ID

Request body

UpdateSourceRequest required

Patch for a source. Nullable columns use Option<Option<T>> (via double_option) so an omitted field is left unchanged while an explicit null clears the column. title (NOT NULL) and source_type (immutable) stay plain Option<T>.

doi, string nullable
edition, string nullable
isbn, string[] nullable
journal_name, string nullable
original_year, integer nullable
original_year_circa, boolean nullable

NOT NULL in the schema, so a plain Option: present means set it.

page_end, integer nullable
page_start, integer nullable
parent_source_id, string nullable
protected, boolean nullable
publication_place, string nullable
publication_year, integer nullable
publisher, string nullable
source_type, 'book' | 'article' | 'chapter' | 'journal' | 'web' nullable

Stored as the Postgres enum source_type.

title, string nullable
title_display, string nullable
translation_of_id, string nullable
url, string nullable
volume, string nullable

Response

Source updated

SourceResponse required
created_by, string required
doi, string nullable
edition, string nullable
id, string required
isbn, string[] nullable
journal_name, string nullable
original_year, integer nullable

Year of the edition this text presents, when it differs from the printing transcribed (CSL "original-date"). NULL = same as publication_year.

original_year_circa, boolean

original_year is a scholarly estimate rather than an imprint date, as for ancient works. Cites with Chicago's "ca." prefix.

page_end, integer nullable
page_start, integer nullable
parent, ParentSourceResponse nullable
persons, SourcePersonResponse[] required
protected, boolean required
publication_place, string nullable
publication_year, integer nullable
publisher, string nullable
source_type, 'book' | 'article' | 'chapter' | 'journal' | 'web' required

Stored as the Postgres enum source_type.

title, string required
title_display, string nullable
translation_of_id, string nullable
url, string nullable
volume, string nullable

Changes

    • info

      added the new optional request property original_year_circa

    • info

      added the optional property original_year_circa to the response with the status

    • breaking

      the request property source_type became not nullable

    20 more changes in this revision