> ## 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 treatment

> 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-treatments/{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-treatments/{id}:
    patch:
      tags:
        - Story Treatments
      summary: Patch story treatment
      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: treatments_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying this Story Treatment.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedStoryTreatmentRequest'
            examples:
              CreateTreatment:
                value:
                  name: Package
                  description: Pre-recorded news package with voiceover
                summary: Create treatment
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedStoryTreatmentRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedStoryTreatmentRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StoryTreatment'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    PatchedStoryTreatmentRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          description: name of treatment
          maxLength: 100
        description:
          type: string
          minLength: 1
          description: description of the treatment
    StoryTreatment:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          description: name of treatment
          maxLength: 100
        description:
          type: string
          description: description of the treatment
        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>'

````