Upload the organisation logo
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/{organisation_id}/logo"
files = { "file": ("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('file', '<string>');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://platform.ankra.app/api/v1/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/api/v1/org/organisation/{organisation_id}/logo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file{
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation
Upload the organisation logo
Stores the organisation’s logo: a PNG, JPEG or WebP image of at most 512 KiB, sent as the multipart field file. Requires organisation.manage; the path must name the organisation the token acts in (its own, or the X-Ankra-Organisation-Id override), and a token pinned to a project is refused, since the setting has no per-project form.
PUT
/
api
/
v1
/
org
/
organisation
/
{organisation_id}
/
logo
Upload the organisation logo
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/{organisation_id}/logo"
files = { "file": ("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('file', '<string>');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://platform.ankra.app/api/v1/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/api/v1/org/organisation/{organisation_id}/logo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file{
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}