Open a popup
curl --request POST \ --url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/popup \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "command": { "exec": [ "example" ] }, "cwd": "example", "env": [ [ "NAME", "value" ] ], "title": "example" }'Runs a program in a popup over the pane. Replies once a client started it; then wait for its exit status.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Pane ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Chosen by the caller, so a request retried across an upgrade finds its popup rather than running the program again.
Replaces the server’s environment.
Responses
Section titled “Responses”Started in a client
object
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}An empty command, a cwd that isn’t a directory, or an id already in use; or a malformed ID or JSON body
Missing or wrong access token
The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)
No such pane
No client is showing the pane
The popup closed before it started
A body over the size limit
No Content-Type: application/json
The program can’t start; or a body that doesn’t match its schema
The pane already has a popup open