Skip to content

PATCH/albums/{id}

Partially update album

Partial update — only provided fields change. Triggers `albums.updated` webhook.

Parameters 1

NameTypeDescription
idrequiredpath · integerResource identifier

ReturnsAlbum

AcceptsAlbumInput

Bearer token required

Response examples

200Album updated

application/json example derived from schema

{
  "id": 1,
  "userId": 1,
  "title": "Abstract",
  "description": "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
  "coverImage": "https://picsum.photos/seed/album1/600/400",
  "photoCount": 39,
  "isPublic": true,
  "createdAt": "2024-07-02T09:01:49.954Z"
}
400400 — invalid input or malformed JSON

application/json

{
  "error": {
    "status": 400,
    "message": "Request body required"
  }
}
404404 — resource not found

application/json

{
  "error": {
    "status": 404,
    "message": "users #999 not found"
  }
}

Released under the MIT License.