Store organisation logo
import requests
url = "https://platform.ankra.app/org/organisation/{organisation_id}/logo"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"cookie": "ankra_session="}
response = requests.put(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'PUT', headers: {cookie: 'ankra_session='}};
options.body = form;
fetch('https://platform.ankra.app/org/organisation/{organisation_id}/logo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/org/organisation/{organisation_id}/logo \
--header 'Content-Type: multipart/form-data' \
--cookie ankra_session= \
--form file='@example-file'{
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation
Store organisation logo
PUT
/
org
/
organisation
/
{organisation_id}
/
logo
Store organisation logo
import requests
url = "https://platform.ankra.app/org/organisation/{organisation_id}/logo"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"cookie": "ankra_session="}
response = requests.put(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'PUT', headers: {cookie: 'ankra_session='}};
options.body = form;
fetch('https://platform.ankra.app/org/organisation/{organisation_id}/logo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/org/organisation/{organisation_id}/logo \
--header 'Content-Type: multipart/form-data' \
--cookie ankra_session= \
--form file='@example-file'{
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}