Skip to main content

Update AI Agent Basic Information

Used to update the basic information (persona) of an existing AI agent. This typically includes fields like name, role, tags, description, and logo, but not AI-specific configurations.

API Endpoint

PropertyValue
Request MethodPOST
Request URLhttps://api.seliseblocks.com/agents/update-persona

Request

Request Example

curl -X POST 'https://api.seliseblocks.com/agents/update-persona' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"agent_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Customer Support Agent",
"tags": ["support", "customer-service", "chatbot"],
"description": "An AI agent specialized in handling customer support inquiries",
"logo_url": "https://example.com/logo.png",
"logo_id": "logo_123456",
"project_key": "YOUR_PROJECT_KEY"
}'

Request Headers

FieldTypeRequiredDescription
acceptstringYesAccepted response format. Use application/json
Content-Typeapplication/jsonYesData type, must be application/json.

Request Body

Request Body Schema

{
"agent_id": "string",
"name": "string",
"tags": [
"string"
],
"description": "string",
"logo_url": "string",
"logo_id": "string",
"project_key": "string"
}

Request Body Parameters

FieldTypeRequiredDescription
agent_idstringYesUnique identifier of the agent to be updated.
namestringYesThe updated name of the AI agent.
tagsarrayNoArray of tags/labels to categorize the agent.
descriptionstringNoUpdated description of the agent's purpose and functionality.
logo_urlstringNoURL of the agent's logo image.
logo_idstringNoUnique identifier for the logo asset.
project_keystringYesThe project key for your project.

Response

Success Response (200 OK)

Returns an object containing the update status and details.

{
"is_success": true,
"item_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"detail": "Agent persona updated successfully",
"error": {}
}

Response Fields

FieldTypeDescription
is_successbooleanIndicates whether the agent update was successful.
item_idstringUnique identifier for the updated agent.
detailstringSuccess or failure message with additional context.
errorobjectError details if the operation failed (empty if successful).

Error Response (422 Unprocessable Entity)

Returns validation error details when the request body is invalid.

{
"detail": [
{
"loc": [
"body",
"agent_id"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}

Error Response Fields

FieldTypeDescription
detailarrayArray of validation error objects.
locarrayLocation of the error in the request (e.g., body field).
msgstringHuman-readable error message.
typestringError type identifier.

Error Codes

Status CodeDescriptionResponse Type
200Successful ResponseSuccess
422Validation Error - Invalid request parametersUnprocessable Entity