Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Reply to pending permission request

Respond to a pending permission request owned by a session.

POST/api/session/{sessionID}/permission/{requestID}/reply
Path parameters
sessionIDobjectrequired
requestIDobjectrequired
Request body
requiredapplication/json
replyPermissionV2.Replyrequired
Allowed:oncealwaysreject
messagestring | any
Show properties
Any of:
string
string
any
any
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 | PermissionNotFoundError
Any of:
PermissionNotFoundError
_tagstringrequired
Allowed:PermissionNotFoundError
requestIDstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
Request
curl -X POST "/api/session/%5Bobject%20Object%5D/permission/%5Bobject%20Object%5D/reply" \
  -H "Content-Type: application/json" \
  -d '{
  "reply": "once",
  "message": "string"
}'
Response
<No Content>