Set thread goal.
Set or replace the durable thread-level goal without appending a user message or starting a new assistant stream.
Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
Durable thread-level objective used to validate assistant completion across turns, tool loops, approval resumes, and compaction.
1 - 4000Optional concrete criteria the goal reviewer should require before marking the goal satisfied.
20Optional exclusions that should not be treated as required work for this goal.
20Optional evidence the reviewer should expect, such as tests, lint, screenshots, API results, or changed resources.
20Optional validation commands or checks relevant to this goal.
20Optional concise definition of done used by the reviewer when evaluating candidate completion.
500Response
Thread goal updated.

