API

AgentSetting

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/settings load Agent configuration
PATCH /api/v1/organizations/{organization_id}/agents/{id}/spark/settings update Agent configuration

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

agent_setting, err := client.AgentSetting(nil).Load(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_setting)
updated, err := client.AgentSetting(nil).Update(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

Construct client as shown in the Lua setup, then call the operations:

local agent_setting, err = client:AgentSetting():load({ agent_id = "example", organization_id = "example" })
local updated, err = client:AgentSetting():update({ agent_id = "example", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$agent_setting = $client->AgentSetting()->load(["agent_id" => "example", "organization_id" => "example"]);
$updated = $client->AgentSetting()->update(["agent_id" => "example", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

agent_setting = client.AgentSetting().load({"agent_id": "example", "organization_id": "example"})
updated = client.AgentSetting().update({"agent_id": "example", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

agent_setting = client.AgentSetting.load({ "agent_id" => "example", "organization_id" => "example" })
updated = client.AgentSetting.update({ "agent_id" => "example", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const agent_setting = await client.AgentSetting().load({ agent_id: "example", organization_id: "example" })
const updated = await client.AgentSetting().update({ agent_id: "example", organization_id: "example" })

Fields

Field Type Required Description
can_manage boolean Yes Can Manage
expected_version string Yes Expected Version
instructions string Yes Instructions
version string Yes Version

load

GET /api/v1/organizations/{organization_id}/agents/{id}/spark/settings

Operation ID: spark_settings_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

200: Agent configuration

application/json

Property Type Required Description
can_manage boolean Yes
instructions string Yes
version string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PATCH /api/v1/organizations/{organization_id}/agents/{id}/spark/settings

Operation ID: patch_api_v1_organizations_organization_id_agents_id_spark_settings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
expected_version string Yes
instructions string Yes

Responses

200: Agent configuration

application/json

Property Type Required Description
can_manage boolean Yes
instructions string Yes
version string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway