Agent Plugins
Upload an agent plugin icon.
Upload an image up to 5 MiB and replace the plugin icon using its current version.
POST
/
api
/
v1
/
agent
/
plugins
/
{agentPluginId}
/
upload-icon
Upload an agent plugin icon.
curl --request POST \
--url https://api.revoengine.com/api/v1/agent/plugins/{agentPluginId}/upload-icon \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form version=1const form = new FormData();
form.append('file', '<string>');
form.append('version', '1');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.revoengine.com/api/v1/agent/plugins/{agentPluginId}/upload-icon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agent/plugins/{agentPluginId}/upload-icon"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "version": "1" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)⌘I
Upload an agent plugin icon.
curl --request POST \
--url https://api.revoengine.com/api/v1/agent/plugins/{agentPluginId}/upload-icon \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form version=1const form = new FormData();
form.append('file', '<string>');
form.append('version', '1');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.revoengine.com/api/v1/agent/plugins/{agentPluginId}/upload-icon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agent/plugins/{agentPluginId}/upload-icon"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "version": "1" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)
