Themes

Update an existing theme (partial update)

patch/themes/{id}

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/themes/{id}
  • Auth: none declared

Path parameters

idstring uuid required

UUID of the theme to patch

Request body

namestring

Name of the theme

monthinteger

Month of the theme (1-12)

yearinteger

Year of the theme

Example request

{
  "name": "Spring Blossoms",
  "month": 3,
  "year": 2024
}

Response

Theme updated successfully

idstring uuid required

Unique identifier for the theme

namestring required

Name of the theme

monthinteger required

Month of the theme (1-12)

yearinteger required

Year of the theme (e.g., 2024)

created_atstring date-time required

When the theme was created

updated_atstring date-time required

When the theme was last updated

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Winter Wonderland",
  "month": 12,
  "year": 2024,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:35:00Z"
}

Changes