> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capedigital.co.ke/llms.txt
> Use this file to discover all available pages before exploring further.

# Patch story category

> Base model view set providing standardized CRUD operations and error handling.

This view set enforces consistent response formats, error handling patterns,
and logging across all API endpoints. Subclasses must override the class
variables below.



## OpenAPI

````yaml /openapi/content.yaml patch /api/v1/story-categories/{id}
openapi: 3.0.3
info:
  title: Content Service API
  version: 1.0.0
  description: |2-

        **Content Service API** - Comprehensive content(story) and management system.
        
servers:
  - url: https://api.capedigital.co.ke/content
    description: Production
  - url: http://localhost:8000
    description: Local
security: []
paths:
  /api/v1/story-categories/{id}:
    patch:
      tags:
        - Story Categories
      summary: Patch story category
      description: >-
        Base model view set providing standardized CRUD operations and error
        handling.


        This view set enforces consistent response formats, error handling
        patterns,

        and logging across all API endpoints. Subclasses must override the class

        variables below.
      operationId: categories_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying this Story Category.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedStoryCategoryRequest'
            examples:
              CreateCategory:
                value:
                  name: Politics
                  description: Political news and affairs
                summary: Create category
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedStoryCategoryRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedStoryCategoryRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StoryCategory'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    PatchedStoryCategoryRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          description: name of story category
          maxLength: 100
        description:
          type: string
          minLength: 1
          description: description of the category
    StoryCategory:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          description: name of story category
          maxLength: 100
        description:
          type: string
          description: description of the category
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - created_at
        - description
        - id
        - name
        - updated_at
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your JWT token in the format: Bearer <token>'

````