curl --request POST \
--url https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "<string>",
"expected_current_config_id": "<string>"
}
'import requests
url = "https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config"
payload = {
"source": "<string>",
"expected_current_config_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({source: '<string>', expected_current_config_id: '<string>'})
};
fetch('https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config"
payload := strings.NewReader("{\n \"source\": \"<string>\",\n \"expected_current_config_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"agent_config": {
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"effective_definition_hash": "<string>",
"model": {
"provider_config": "<string>",
"name": "<string>",
"provider_model_slug": "<string>",
"configured_model_id": "<string>",
"current_revision_id": "<string>",
"api_format": "openai-responses",
"api_variant": "<string>",
"context_window_tokens": 123,
"max_output_tokens": 123,
"default_cache_retention": "none",
"supports_tools": true,
"supports_reasoning": true,
"default_reasoning_effort": "<string>",
"supported_reasoning_efforts": [
"<string>"
],
"input_modalities": [
"<string>"
],
"output_modalities": [
"<string>"
],
"default_max_output_tokens": 123
},
"created_at": "2023-11-07T05:31:56Z",
"compiled_definition": {
"instruction": "<string>",
"model": {
"configured_model_id": "<string>",
"context_window_tokens": 123,
"default_max_output_tokens": 123,
"cache_retention": "none",
"reasoning": {
"effort": "<string>"
}
},
"version": "<string>",
"machine_sources": [
{
"machine_id": "<string>",
"machine_pool_id": "<string>",
"max_machines": 123,
"initial_num_machines": 123,
"delete_after_idle_minutes": 123,
"cwd": "<string>",
"machine_cpu": 123,
"machine_memory_mb": 123,
"env_overlay": {},
"secret_env_overlay": {},
"machine_provider_options_overlay": {},
"description": "<string>"
}
],
"tools": {},
"mcp": {},
"interaction_handlers": {},
"git_credentials": {
"integration": "<string>",
"integration_id": "<string>",
"repository_ids": [
123
],
"read_only": true
},
"skills": [
{
"id": "<string>"
}
],
"memory_stores": [
{
"id": "<string>",
"access": "read"
}
],
"subagents": {},
"max_subagents": 123,
"max_depth": 123
},
"source": "<string>",
"source_format": "yaml",
"instruction_hash": "<string>"
},
"agent_input": {
"id": "<string>",
"agent_id": "<string>",
"state": "<string>",
"delivery_mode": "queued",
"input_kind": "content",
"queued_at": "2023-11-07T05:31:56Z",
"actor_id": "<string>",
"input_idempotency_key": "<string>",
"content_blocks": [
{
"type": "text",
"text": "<string>",
"metadata": {}
}
]
},
"event_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Update agent config
Replaces an active agent’s config without restarting its conversation and returns the new agent_config. Model, instruction, and tool changes apply at the agent’s next model call; machine changes apply immediately, stopping processes on removed machines and deleting the agent’s machines from removed pools. Send the complete config, not a patch.
curl --request POST \
--url https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "<string>",
"expected_current_config_id": "<string>"
}
'import requests
url = "https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config"
payload = {
"source": "<string>",
"expected_current_config_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({source: '<string>', expected_current_config_id: '<string>'})
};
fetch('https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/api/v1/orgs/{orgID}/projects/{projectID}/agents/{agentID}/config"
payload := strings.NewReader("{\n \"source\": \"<string>\",\n \"expected_current_config_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"agent_config": {
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"effective_definition_hash": "<string>",
"model": {
"provider_config": "<string>",
"name": "<string>",
"provider_model_slug": "<string>",
"configured_model_id": "<string>",
"current_revision_id": "<string>",
"api_format": "openai-responses",
"api_variant": "<string>",
"context_window_tokens": 123,
"max_output_tokens": 123,
"default_cache_retention": "none",
"supports_tools": true,
"supports_reasoning": true,
"default_reasoning_effort": "<string>",
"supported_reasoning_efforts": [
"<string>"
],
"input_modalities": [
"<string>"
],
"output_modalities": [
"<string>"
],
"default_max_output_tokens": 123
},
"created_at": "2023-11-07T05:31:56Z",
"compiled_definition": {
"instruction": "<string>",
"model": {
"configured_model_id": "<string>",
"context_window_tokens": 123,
"default_max_output_tokens": 123,
"cache_retention": "none",
"reasoning": {
"effort": "<string>"
}
},
"version": "<string>",
"machine_sources": [
{
"machine_id": "<string>",
"machine_pool_id": "<string>",
"max_machines": 123,
"initial_num_machines": 123,
"delete_after_idle_minutes": 123,
"cwd": "<string>",
"machine_cpu": 123,
"machine_memory_mb": 123,
"env_overlay": {},
"secret_env_overlay": {},
"machine_provider_options_overlay": {},
"description": "<string>"
}
],
"tools": {},
"mcp": {},
"interaction_handlers": {},
"git_credentials": {
"integration": "<string>",
"integration_id": "<string>",
"repository_ids": [
123
],
"read_only": true
},
"skills": [
{
"id": "<string>"
}
],
"memory_stores": [
{
"id": "<string>",
"access": "read"
}
],
"subagents": {},
"max_subagents": 123,
"max_depth": 123
},
"source": "<string>",
"source_format": "yaml",
"instruction_hash": "<string>"
},
"agent_input": {
"id": "<string>",
"agent_id": "<string>",
"state": "<string>",
"delivery_mode": "queued",
"input_kind": "content",
"queued_at": "2023-11-07T05:31:56Z",
"actor_id": "<string>",
"input_idempotency_key": "<string>",
"content_blocks": [
{
"type": "text",
"text": "<string>",
"metadata": {}
}
]
},
"event_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
An opaque BMA personal or organization bearer token.
Headers
Idempotency key for replay-safe mutating requests.
1 - 255Path Parameters
Organization ID (org_...).
^org_[a-z2-7]{26}$Project ID (proj_...).
^proj_[a-z2-7]{26}$Agent ID (agt_...).
^agt_[a-z2-7]{26}$Body
Replaces a live agent's config. expected_current_config_id makes the change conditional on the agent still running that config, so concurrent editors get a conflict instead of silently overwriting each other.
Agent config source as YAML or JSON text, or, with source_format json, as a JSON object.
1Format of source: yaml or json.
yaml, json Agent config ID (acfg_...).
^acfg_[a-z2-7]{26}$