---
agentTools:
  projectIndex: https://docs.storyly.io/llms.txt
---

# Update story group

Update an existing story group.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Storyly External API",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.storyly.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "JWT token for API authentication"
      }
    }
  },
  "paths": {
    "/external/story-group": {
      "patch": {
        "tags": [
          "story-group"
        ],
        "summary": "Update story group",
        "description": "Update an existing story group.",
        "operationId": "updateStoryGroup",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "description": "Optional - New cover image",
                    "type": "string",
                    "format": "binary"
                  },
                  "id": {
                    "description": "Required - Story group ID",
                    "type": "string",
                    "example": "204206"
                  },
                  "media_url": {
                    "description": "Optional - New media URL",
                    "type": "string",
                    "example": "https://example.com/new-cover.jpg"
                  },
                  "pinned": {
                    "description": "Optional - Pin status (boolean)",
                    "type": "string",
                    "example": "false"
                  },
                  "segments": {
                    "description": "Optional - New segments as JSON",
                    "type": "string",
                    "example": "{}"
                  },
                  "settings": {
                    "description": "Optional - New settings as JSON",
                    "type": "string",
                    "example": "{}"
                  },
                  "sort_order": {
                    "description": "Optional - New sort order (integer)",
                    "type": "string",
                    "example": "1"
                  },
                  "status": {
                    "description": "Required - New status (integer)",
                    "type": "string",
                    "example": "1"
                  },
                  "title": {
                    "description": "Optional - New title (max 255 chars)",
                    "type": "string",
                    "example": "Updated Story Group"
                  },
                  "ts_end": {
                    "description": "Optional - New end timestamp",
                    "type": "string",
                    "example": "2024-04-20T00:00:00Z"
                  },
                  "ts_start": {
                    "description": "Optional - New start timestamp",
                    "type": "string",
                    "example": "2024-03-20T00:00:00Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Story Group successfully updated"
                    },
                    "status": {
                      "type": "string",
                      "example": "ok"
                    }
                  }
                },
                "examples": {
                  "200": {
                    "value": {
                      "message": "Story Group successfully updated",
                      "status": "ok"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "story-group",
      "description": "Story group management endpoints"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 249,
      "2": 255,
      "3": 26,
      "4": 178,
      "5": 168,
      "6": 65,
      "7": 240,
      "8": 58,
      "9": 114,
      "10": 176,
      "11": 107
    }
  }
}
```