sources

Create a new source

Changed on
post/api/sources

Request

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

Request body

CreateSourceRequest required
doi, string nullable
edition, string nullable
isbn, string[] nullable
journal_name, string nullable
original_year, integer nullable
original_year_circa, boolean
page_end, integer nullable
page_start, integer nullable
parent_source_id, string nullable
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

Response

Source created

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

      request property source_type was restricted to a list of enum values

    23 more changes in this revision