Put Objective
Set or replace the objective text for a thread (human edit path).
The agent maintains the objective via set_objective; this endpoint lets
the user edit it directly from the Planning panel.
Args: payload: The new objective text (null/empty clears it). user: Authenticated owner. thread_id: Target conversation. db: Database session.
Returns:
The updated ObjectiveSchema.
Authorizations
A personal access token (haico_pat_...), created under Profile → API keys. Send it as Authorization: Bearer <key>. The browser session JWT is also accepted but is an internal mechanism and is not part of the public contract.
Path Parameters
1Body
Payload for the PUT objective endpoint.