SparkAgentSkill
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/agents/{id}/spark/skills |
create |
Agent configuration |
GET |
/api/v1/organizations/{organization_id}/agents/{id}/spark/skills |
list |
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:
spark_agent_skills, err := client.SparkAgentSkill(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(spark_agent_skills)
created, err := client.SparkAgentSkill(nil).Create(map[string]any{"agent_id": "example", "organization_id": "example", "enabled": true, "name": "example", "version": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local spark_agent_skills, err = client:SparkAgentSkill():list({ agent_id = "example", organization_id = "example" })
local created, err = client:SparkAgentSkill():create({ agent_id = "example", organization_id = "example", enabled = true, name = "example", version = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$spark_agent_skills = $client->SparkAgentSkill()->list(["agent_id" => "example", "organization_id" => "example"]);
$created = $client->SparkAgentSkill()->create(["agent_id" => "example", "organization_id" => "example", "enabled" => true, "name" => "example", "version" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
spark_agent_skills = client.SparkAgentSkill().list({"agent_id": "example", "organization_id": "example"})
created = client.SparkAgentSkill().create({ "agent_id": "example", "organization_id": "example", "enabled": True, "name": "example", "version": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
spark_agent_skills = client.SparkAgentSkill.list({ "agent_id" => "example", "organization_id" => "example" })
created = client.SparkAgentSkill.create({ "agent_id" => "example", "organization_id" => "example", "enabled" => true, "name" => "example", "version" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const spark_agent_skills = await client.SparkAgentSkill().list({ agent_id: "example", organization_id: "example" })
const created = await client.SparkAgentSkill().create({ agent_id: "example", organization_id: "example", enabled: true, name: "example", version: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
available |
boolean |
Yes | Available |
can_configure |
boolean |
Yes | Can Configure |
can_manage |
boolean |
Yes | Can Manage |
configuration_state |
string |
No | The requested managed skill selection is awaiting runtime qualification. |
description |
string |
Yes | Description |
enabled |
boolean |
Yes | Enabled |
name |
string |
Yes | Name |
skills |
array |
Yes | Skills |
version |
string |
Yes | Version |
create
POST /api/v1/organizations/{organization_id}/agents/{id}/spark/skills
Operation ID: post_api_v1_organizations_organization_id_agents_id_spark_skills.
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 |
|---|---|---|---|
enabled |
boolean |
Yes | |
name |
string |
Yes | |
version |
string |
Yes |
Responses
200: Agent configuration
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_manage |
boolean |
Yes | |
configuration_state |
enum: pending |
No | The requested managed skill selection is awaiting runtime qualification. |
skills |
array of object |
Yes | |
skills[].available |
boolean |
Yes | |
skills[].can_configure |
boolean |
Yes | |
skills[].description |
string |
Yes | |
skills[].enabled |
boolean |
Yes | |
skills[].name |
string |
Yes | |
version |
string |
Yes |
202: Managed skill settings accepted for a replacement runtime revision. The catalog remains the last observed native state until qualification
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_manage |
boolean |
Yes | |
configuration_state |
enum: pending |
No | The requested managed skill selection is awaiting runtime qualification. |
skills |
array of object |
Yes | |
skills[].available |
boolean |
Yes | |
skills[].can_configure |
boolean |
Yes | |
skills[].description |
string |
Yes | |
skills[].enabled |
boolean |
Yes | |
skills[].name |
string |
Yes | |
version |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/skills
Operation ID: spark_skills_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 | |
configuration_state |
enum: pending |
No | The requested managed skill selection is awaiting runtime qualification. |
skills |
array of object |
Yes | |
skills[].available |
boolean |
Yes | |
skills[].can_configure |
boolean |
Yes | |
skills[].description |
string |
Yes | |
skills[].enabled |
boolean |
Yes | |
skills[].name |
string |
Yes | |
version |
string |
Yes |