Skip to main content
PUT
/
api
/
v1
/
story-treatments
/
{id}
Update story treatment
curl --request PUT \
  --url https://api.example.com/api/v1/story-treatments/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

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.

Authorizations

Authorization
string
header
required

Enter your JWT token in the format: Bearer

Path Parameters

id
string<uuid>
required

A UUID string identifying this Story Treatment.

Body

name
string
required

name of treatment

Required string length: 1 - 100
description
string
required

description of the treatment

Minimum string length: 1

Response

200 - application/json
id
string<uuid>
required
read-only
name
string
required

name of treatment

Maximum string length: 100
description
string
required

description of the treatment

created_at
string<date-time>
required
read-only
updated_at
string<date-time>
required
read-only