Skip to main content
 print this page

Update a project thread

PUT 

/ai/projects/:project_id/threads/:thread_id

Edits a thread or asks for a summary of it, depending on action. You need at least read-only access to the project and the ai.view permission. With action=update, send any of Title, Keywords and Visibility. Omitted fields are left alone, Keywords replaces the existing list rather than adding to it, and Visibility can only go from private to public — sharing a thread cannot be undone. A body that changes nothing still succeeds. With action=summarize, the thread needs at least two messages and the request body is ignored; send an empty object. The response returns straight away and the thread's SummaryGenerationStatus becomes triggered. Poll the thread detail endpoint for Summary and SummaryGenerationStatus.

Request

Responses

The request was accepted. The same message is returned whether the thread changed, nothing changed, or a summary was requested, so read the thread back if you need to confirm the new state.

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers
    Strict-Transport-Security