Patch Thread Goal
Changed onMutate the goal's status. Body: {action: 'pause'|'resume'| 'complete'|'clear', expected_goal_id?: str}. clear bypasses the optimistic-lock check on purpose (matches local behavior). Returns {ok, goal, outcome: 'applied'|'unchanged'|'stale_id'}.
patch/api/processes/{process_id}/threads/{session_id}/goal
Request
- Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
- URL: https://api.omicos.cn/api/processes/{process_id}/threads/{session_id}/goal
- Auth: none declared
Path parameters
process_idstring required
session_idstring required
Headers
authorizationstring nullable
x-omicos-devicestring nullable
x-omicos-device-kindstring nullable
x-omicos-device-namestring nullable
Request body
object required
Response
Successful Response
object required
Changes
- info
added the new optional
headerrequest parameterx-omicos-device - info
added the new optional
headerrequest parameterx-omicos-device-kind - info
added the new optional
headerrequest parameterx-omicos-device-name
- info