Upload my profile picture
curl --request POST \
--url https://api.salessequencer.com/api/v1/profile/avatar \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form avatar=@example-fileimport requests
url = "https://api.salessequencer.com/api/v1/profile/avatar"
files = { "avatar": ("example-file", open("example-file", "rb")) }
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('avatar', '<string>');
const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
options.body = form;
fetch('https://api.salessequencer.com/api/v1/profile/avatar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Profile
Upload my profile picture
Center-crops the image to a 256px square PNG and replaces the user’s avatar. Accepts .jpg, .jpeg, .png, .webp, .gif, max 6000x6000 pixels (and the app’s upload size cap). Refuses with a flash on no file, wrong type, empty file, oversize dimensions or unreadable image.
Minimum role: view (x-min-role). Destructive: false (x-destructive).
POST
/
profile
/
avatar
Upload my profile picture
curl --request POST \
--url https://api.salessequencer.com/api/v1/profile/avatar \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form avatar=@example-fileimport requests
url = "https://api.salessequencer.com/api/v1/profile/avatar"
files = { "avatar": ("example-file", open("example-file", "rb")) }
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('avatar', '<string>');
const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
options.body = form;
fetch('https://api.salessequencer.com/api/v1/profile/avatar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));