Save one coding agent's managed configuration as a new revision
curl --request PUT \
--url https://harness.example.com/admin/harnesses/{harness}/managed-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base_revision": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"managed_config_yaml": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
base_revision: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
managed_config_yaml: '<string>'
})
};
fetch('https://harness.example.com/admin/harnesses/{harness}/managed-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/admin/harnesses/{harness}/managed-config"
payload = {
"base_revision": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"managed_config_yaml": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"revision": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"harness": "<string>",
"managed_config_yaml": "<string>",
"allow_unverified_versions": true,
"version_requirement": "<string>"
}Administration
Save one coding agent's managed configuration as a new revision
PUT
/
admin
/
harnesses
/
{harness}
/
managed-config
Save one coding agent's managed configuration as a new revision
curl --request PUT \
--url https://harness.example.com/admin/harnesses/{harness}/managed-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base_revision": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"managed_config_yaml": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
base_revision: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
managed_config_yaml: '<string>'
})
};
fetch('https://harness.example.com/admin/harnesses/{harness}/managed-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/admin/harnesses/{harness}/managed-config"
payload = {
"base_revision": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"managed_config_yaml": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"revision": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"harness": "<string>",
"managed_config_yaml": "<string>",
"allow_unverified_versions": true,
"version_requirement": "<string>"
}Authorizations
OAuth 2.0 access token obtained through RFC 8628 at /api/auth/device/code and /api/auth/oauth2/token. The API enforces governance:read, session:write, and client-status:write as appropriate.
Path Parameters
Harness key from the compiled registry
Body
application/json
YAML mapping containing only the selected harness's managed settings
Optional semver range enforced for the installed harness
Permit versions beyond Blue's certified ceiling when constrained by an explicit version_requirement
