PUT /admin/slide/theme/{id}

Updates an existing slide theme by ID. Admin access required.

Path parameters

  • id string Required

    Unique identifier of the slide theme to update

application/json

Body Required

  • backgroundColor string | object Required

    Page background color or gradient

    One of:
  • themeColors array[string] Required

    Theme color palette

  • fontColor string Required

    Default font color

  • fontName string Required

    Default font family

  • outline object Required
    Hide outline attributes Show outline attributes object
    • style string

      Values are solid, dashed, or dotted.

    • width number
    • color string
  • shadow object Required
    Hide shadow attributes Show shadow attributes object
    • h number Required

      Horizontal offset

    • v number Required

      Vertical offset

    • blur number Required

      Blur amount

    • color string Required
  • titleFontName string
  • titleFontColor string
  • labelFontColor string
  • labelFontName string
  • id string
  • name string
  • additionalElements array[object]

    Base definition for PPT Elements (Text, Image, Shape, etc.)

    Hide additionalElements attributes Show additionalElements attributes object
    • id string Required
    • type string Required

      Values are text, image, shape, line, chart, table, latex, video, or audio.

    • left number Required
    • top number Required
    • width number Required
    • height number Required
    • rotate number Required
    • lock boolean
    • groupId string
  • accentImageShape string

    Values are default, big, or mixed.

  • card object
    Hide card attributes Show card attributes object
    • enabled boolean Required
    • borderRadius number Required
    • borderWidth number Required
    • fill string Required

      Values are none, full, or semi.

    • shadow object Required
      Hide shadow attributes Show shadow attributes object
      • h number Required

        Horizontal offset

      • v number Required

        Vertical offset

      • blur number Required

        Blur amount

      • color string Required
    • backgroundColor string Required
    • textColor string Required

Responses

  • 200 application/json

    Slide theme updated successfully

    Hide response attributes Show response attributes object
    • success boolean
    • code integer(int32)
    • message string
    • data object

      Slide theme configuration

      Hide data attributes Show data attributes object
      • backgroundColor string | object Required

        Page background color or gradient

        One of:
      • themeColors array[string] Required

        Theme color palette

      • fontColor string Required

        Default font color

      • fontName string Required

        Default font family

      • outline object Required
        Hide outline attributes Show outline attributes object
        • style string

          Values are solid, dashed, or dotted.

        • width number
        • color string
      • shadow object Required
        Hide shadow attributes Show shadow attributes object
        • h number Required

          Horizontal offset

        • v number Required

          Vertical offset

        • blur number Required

          Blur amount

        • color string Required
      • titleFontName string
      • titleFontColor string
      • labelFontColor string
      • labelFontName string
      • id string
      • name string
      • additionalElements array[object]

        Base definition for PPT Elements (Text, Image, Shape, etc.)

        Hide additionalElements attributes Show additionalElements attributes object
        • id string Required
        • type string Required

          Values are text, image, shape, line, chart, table, latex, video, or audio.

        • left number Required
        • top number Required
        • width number Required
        • height number Required
        • rotate number Required
        • lock boolean
        • groupId string
      • accentImageShape string

        Values are default, big, or mixed.

      • card object
        Hide card attributes Show card attributes object
        • enabled boolean Required
        • borderRadius number Required
        • borderWidth number Required
        • fill string Required

          Values are none, full, or semi.

        • shadow object Required
          Hide shadow attributes Show shadow attributes object
          • h number Required

            Horizontal offset

          • v number Required

            Vertical offset

          • blur number Required

            Blur amount

          • color string Required
        • backgroundColor string Required
        • textColor string Required
  • 400 application/json

    Bad Request - Invalid input data

  • 401 application/json

    Unauthorized - Invalid or missing token

  • 403 application/json

    Forbidden - Admin access required

  • 404 application/json

    Not Found - Slide theme does not exist

  • 500 application/json

    Internal Server Error

PUT /admin/slide/theme/{id}
curl \
 --request PUT 'http://localhost:8080/api/admin/slide/theme/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"backgroundColor":"string","themeColors":["string"],"fontColor":"string","fontName":"string","outline":{"style":"solid","width":42.0,"color":"string"},"shadow":{"h":42.0,"v":42.0,"blur":42.0,"color":"string"},"titleFontName":"string","titleFontColor":"string","labelFontColor":"string","labelFontName":"string","id":"string","name":"string","additionalElements":[{"id":"string","type":"text","left":42.0,"top":42.0,"width":42.0,"height":42.0,"rotate":42.0,"lock":true,"groupId":"string","link":{"type":"web","target":"string"}}],"accentImageShape":"default","card":{"enabled":true,"borderRadius":42.0,"borderWidth":42.0,"fill":"none","shadow":{"h":42.0,"v":42.0,"blur":42.0,"color":"string"},"backgroundColor":"string","textColor":"string"}}'
Request examples
{
  "backgroundColor": "string",
  "themeColors": [
    "string"
  ],
  "fontColor": "string",
  "fontName": "string",
  "outline": {
    "style": "solid",
    "width": 42.0,
    "color": "string"
  },
  "shadow": {
    "h": 42.0,
    "v": 42.0,
    "blur": 42.0,
    "color": "string"
  },
  "titleFontName": "string",
  "titleFontColor": "string",
  "labelFontColor": "string",
  "labelFontName": "string",
  "id": "string",
  "name": "string",
  "additionalElements": [
    {
      "id": "string",
      "type": "text",
      "left": 42.0,
      "top": 42.0,
      "width": 42.0,
      "height": 42.0,
      "rotate": 42.0,
      "lock": true,
      "groupId": "string",
      "link": {
        "type": "web",
        "target": "string"
      }
    }
  ],
  "accentImageShape": "default",
  "card": {
    "enabled": true,
    "borderRadius": 42.0,
    "borderWidth": 42.0,
    "fill": "none",
    "shadow": {
      "h": 42.0,
      "v": 42.0,
      "blur": 42.0,
      "color": "string"
    },
    "backgroundColor": "string",
    "textColor": "string"
  }
}
Response examples (200)
{
  "success": true,
  "code": 200,
  "message": "string",
  "data": {
    "backgroundColor": "string",
    "themeColors": [
      "string"
    ],
    "fontColor": "string",
    "fontName": "string",
    "outline": {
      "style": "solid",
      "width": 42.0,
      "color": "string"
    },
    "shadow": {
      "h": 42.0,
      "v": 42.0,
      "blur": 42.0,
      "color": "string"
    },
    "titleFontName": "string",
    "titleFontColor": "string",
    "labelFontColor": "string",
    "labelFontName": "string",
    "id": "string",
    "name": "string",
    "additionalElements": [
      {
        "id": "string",
        "type": "text",
        "left": 42.0,
        "top": 42.0,
        "width": 42.0,
        "height": 42.0,
        "rotate": 42.0,
        "lock": true,
        "groupId": "string",
        "link": {
          "type": "web",
          "target": "string"
        }
      }
    ],
    "accentImageShape": "default",
    "card": {
      "enabled": true,
      "borderRadius": 42.0,
      "borderWidth": 42.0,
      "fill": "none",
      "shadow": {
        "h": 42.0,
        "v": 42.0,
        "blur": 42.0,
        "color": "string"
      },
      "backgroundColor": "string",
      "textColor": "string"
    }
  }
}