Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Submit bridge command

POST/v1/private/local-runners/{runnerId}/bridge/commandsSubmit bridge command

Submit a bridge command for execution by the local daemon

Parameters

runnerIdstring · uuidpathrequired

Request body

application/json
objectBridgeCommandSubmitRequest
argsobjectrequired
timeout_secondsinteger · int32
typestringrequired

one of "ReadFile", "WriteFile", "EditFile", "ListFiles", "SearchFiles", "Exec"

Example request
{
  "args": {},
  "timeout_seconds": 0,
  "type": "EditFile"
}

Responses

201Command submittedapplication/json

Headers

Location

URI of the command

objectBridgeCommandSubmitResponse
command_idstring · uuid
Example response
{
  "command_id": "00000000-0000-0000-0000-000000000000"
}
404Runner not found or not connectedapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
409Runner does not support bridgeapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
429Too many requestsapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu