---
title: "Update an existing source"
method: PUT
path: "/api/sources/{id}"
tags: ["sources"]
---

# Update an existing source

`PUT /api/sources/{id}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `id` string, required

## Request body

- UpdateSourceRequest: 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 `200`

Source updated

- SourceResponse
  - `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
    - `id` string, required
    - `persons` SourcePersonResponse[], required
      - `created_by` string, required
      - `name` string, required
      - `person_id` string, required
      - `position` integer, required
      - `protected` boolean, required
      - `role` 'author' | 'editor' | 'translator' | 'contributor', required: Stored as the Postgres enum `source_person_role`.
      - `sort_name` 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
  - `persons` SourcePersonResponse[], required
    - `created_by` string, required
    - `name` string, required
    - `person_id` string, required
    - `position` integer, required
    - `protected` boolean, required
    - `role` 'author' | 'editor' | 'translator' | 'contributor', required: Stored as the Postgres enum `source_person_role`.
    - `sort_name` string, nullable
  - `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

## Other responses

- `400`: Invalid input
- `401`: Not authenticated
- `403`: Insufficient permissions
- `404`: Source not found

## Changes

- **2026-09-10** `95fbdb1b2a1c`: 2 info
  - added the new optional request property `original_year_circa`
  - added the optional property `original_year_circa` to the response with the `200` status
- **2026-08-22** `1f567b50f90c`: 2 breaking, 18 warning, 1 info
  - the request property `source_type` became not nullable
  - the `source_type` request property type changed from `string, null` to no type
  - added the new `article` enum value to the `parent/oneOf[#/components/schemas/ParentSourceResponse]/source_type` response property for the response status `200`
  - added the new `article` enum value to the `source_type` response property for the response status `200`
  - …17 more
- **2026-07-30** `a08afe312404`: 4 info
  - added the new optional request property `original_year`
  - added the new optional request property `publication_place`
  - added the optional property `original_year` to the response with the `200` status
  - added the optional property `publication_place` to the response with the `200` status
- **2026-07-16** `4473ab073bea`: 1 info
  - added the non-success response with the status `400`
- …earlier changes not shown

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/sources/:id/put.md)

---

[API](https://skmtc.dev/scholia-study/apis/scholia-api.md) - [All operations](https://skmtc.dev/scholia-study/apis/scholia-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scholia-study/apis/scholia-api/revisions/684b3751bfd3?raw)
