session
Switch session agent
Switch the agent used by subsequent provider turns.
post/api/session/{sessionID}/agent
Request
- Base URL: https://opencode.ai (the document declares no server; this is the origin it was published from)
- URL: https://opencode.ai/api/session/{sessionID}/agent
- Auth: none required
Path parameters
sessionIDstring required
Request body
Response
<No Content>
Changes
No recorded changes to this operation across all 1 revision of this API.