Update CLI
curl --request PUT \
--url http://127.0.0.1:8765/v1/clis/{ref} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fields": {
"repo": "owner/another-repository"
}
}
'import requests
url = "http://127.0.0.1:8765/v1/clis/{ref}"
payload = { "fields": { "repo": "owner/another-repository" } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fields: {repo: 'owner/another-repository'}})
};
fetch('http://127.0.0.1:8765/v1/clis/{ref}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "github",
"name": "github",
"kind": "cli",
"type": "gh",
"builtin": false,
"config": {
"repo": "owner/another-repository"
},
"created_by": null,
"created_at": null,
"updated_at": null
}CLI
Update CLI
PUT
/
v1
/
clis
/
{ref}
Update CLI
curl --request PUT \
--url http://127.0.0.1:8765/v1/clis/{ref} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fields": {
"repo": "owner/another-repository"
}
}
'import requests
url = "http://127.0.0.1:8765/v1/clis/{ref}"
payload = { "fields": { "repo": "owner/another-repository" } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fields: {repo: 'owner/another-repository'}})
};
fetch('http://127.0.0.1:8765/v1/clis/{ref}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "github",
"name": "github",
"kind": "cli",
"type": "gh",
"builtin": false,
"config": {
"repo": "owner/another-repository"
},
"created_by": null,
"created_at": null,
"updated_at": null
}Update a saved CLI configuration. The name and type cannot change. Omitted secret fields keep their values;
See error examples and recovery steps. The complete OpenAPI contract includes every response schema.
null removes a field.
Errors
Errors
| Status | Meaning |
|---|---|
400 | The request is malformed or a field is not valid for the type (param names it), or the fields refer to a secret store that is not saved yet (invalid_request; missing lists the stores to add first). |
401 | The token is missing or wrong (unauthorized). |
404 | The workspace, session, job, file or route does not exist, or the caller may not see it (not_found). |
429 | Past a rate limit (rate_limited), or a new session past max_sessions (session_limit). |
501 | The server does not support this call (not_supported). Saved configs are kept only on a server of one account. |
Authorizations
Body
application/json
Response
200 - application/json
OK