session
Switch session agent
Changed onSwitch the agent used by subsequent provider turns.
post/api/session/{sessionID}/agent
Request
- Base URLhttps://opencode.ai (the document declares no server; this is the origin it was published from)
- URLhttps://opencode.ai/api/session/{sessionID}/agent
- Authnone required
Path parameters
sessionIDstring required
Request body
Response
<No Content>
Changes
- breaking
the response's body type changed from no type to
objectfor status - info
removed from the response body
anyOflist for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking