Upload agent icon
curl --request PUT \
--url https://paradigm.lighton.ai/api/v3/agents/{id}/icon \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form icon='@example-file'import requests
url = "https://paradigm.lighton.ai/api/v3/agents/{id}/icon"
files = { "icon": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('icon', '<string>');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://paradigm.lighton.ai/api/v3/agents/{id}/icon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<unknown>""<unknown>""<unknown>""<unknown>"{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Agents
Upload agent icon
Upload or update an icon for an agent. Maximum file size: 5MB. Access control: Users can upload icons for agents in their personal groups. Company admins can upload icons for agents in any group within their company. Sys-admin users can upload icons for any agent.
PUT
/
api
/
v3
/
agents
/
{id}
/
icon
Upload agent icon
curl --request PUT \
--url https://paradigm.lighton.ai/api/v3/agents/{id}/icon \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form icon='@example-file'import requests
url = "https://paradigm.lighton.ai/api/v3/agents/{id}/icon"
files = { "icon": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('icon', '<string>');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://paradigm.lighton.ai/api/v3/agents/{id}/icon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<unknown>""<unknown>""<unknown>""<unknown>"{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the agent
Body
multipart/form-data
Image file to upload as agent icon (max 5MB)
Response
Icon uploaded successfully