Skip to main content
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>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

ID of the agent

Body

multipart/form-data
icon
file
required

Image file to upload as agent icon (max 5MB)

Response

Icon uploaded successfully