---
title: "Update an existing resource (editor only)"
method: PUT
path: "/api/books/{slug}/resources/{id}"
tags: ["resources"]
---

# Update an existing resource (editor only)

`PUT /api/books/{slug}/resources/{id}`

## Request

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

## Path parameters

- `slug` string, required
- `id` string, required

## Request body

- UpdateResourceRequest
  - `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 `200`

Resource updated

## Other responses

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

## Changes

- **2026-08-22** `1f567b50f90c`: 8 breaking, 4 info
  - the request property `resource_type` became not nullable
  - the request property `scope` became not nullable
  - the request property `sentence_kind` became not nullable
  - the request property `verbatim_kind` became not nullable
  - …8 more
- **2026-07-27** `9938a61f3fbf`: 1 info
  - added the new optional request property `scope`
- **2026-04-05** `46554ab9860a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/books/:slug/resources/: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)
