Update avatar
Update an assistant avatar.
Request
Authentication
Include your private API key in the request headers:
Authorization: Bearer YOUR_PRIVATE_API_KEY
Path Parameters
Request Body
If type
is ICON
, iconAvatar.name
must be one of:
When type
is IMAGE
, provide an imageAvatar.url
that the server can fetch. The image must be publicly accessible.
Example requests
Icon avatar
curl -X PUT "https://superinterface.ai/api/cloud/assistants/00cfe680-fee5-49b9-b386-6a7097eb8497/avatar" \
-H "Authorization: Bearer YOUR_PRIVATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "ICON",
"iconAvatar": { "name": "LIGHTNING_BOLT" }
}'
Image avatar
curl -X PUT "https://superinterface.ai/api/cloud/assistants/00cfe680-fee5-49b9-b386-6a7097eb8497/avatar" \
-H "Authorization: Bearer YOUR_PRIVATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE",
"imageAvatar": { "url": "https://example.com/avatar.png" }
}'
Response
Example responses
Icon avatar
{
"avatar": {
"type": "ICON",
"imageAvatar": null,
"iconAvatar": { "name": "LIGHTNING_BOLT" }
}
}
Image avatar
{
"avatar": {
"type": "IMAGE",
"imageAvatar": { "url": "https://example.com/avatar.png" },
"iconAvatar": null
}
}
Errors
The endpoint may return the following errors:
401 Unauthorized
This error occurs if the API key is invalid or missing.
{
"error": "Unauthorized",
"message": "Invalid or missing API key"
}