Refresh Narrative
POST
/users/{user_id}/narratives/refresh
const url = 'https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/narratives/refresh';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"week_start":"2026-04-15"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”user_id
required
User Id
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”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>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}