Skip to content

Refresh Narrative

POST
/users/{user_id}/narratives/refresh
curl --request POST \
--url https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/narratives/refresh \
--header 'Content-Type: application/json' \
--data '{ "week_start": "2026-04-15" }'

Queue a (re)generation of a week’s narrative — the target week (default: the most recent completed week) is carried in the task’s date_from, which the runner treats as a forced regenerate. Async because it’s an LLM call; poll GET /latest for the result. Deduped against an already-pending task.

user_id
required
User Id
string format: uuid
Media typeapplication/json
NarrativeRefreshRequest

Regenerate a specific week (default: the most recent completed week).

object
week_start
Any of:
string format: date
Examplegenerated
{
"week_start": "2026-04-15"
}

Successful Response

Media typeapplication/json
NarrativeRefreshResponse
object
status
required
Status
string
week_start
required
Week Start
string format: date
Examplegenerated
{
"status": "example",
"week_start": "2026-04-15"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}