Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Put instruction entry

Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.

PUT/api/session/{sessionID}/instructions/entries/{key}
Path parameters
sessionIDobjectrequired
keyInstructionEntry.Keyrequired
Request body
requiredapplication/json
valueanyrequired
Responses
204<No Content>
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
404SessionNotFoundError
Any of:
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
Request
curl -X PUT "/api/session/%5Bobject%20Object%5D/instructions/entries/%5Bobject%20Object%5D" \
  -H "Content-Type: application/json" \
  -d '{
  "value": "string"
}'
Response
<No Content>