Unpublish a canvas page
import requests
url = "https://platform.ankra.app/api/v1/org/canvas-publications/{publication_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/canvas-publications/{publication_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/canvas-publications/{publication_id} \
--header 'Authorization: Bearer <token>'{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"reason": "<string>",
"code": "<string>",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Canvas Pages
Unpublish a canvas page
Takes a published page down. Its address answers 410 from then on; publishing the artifact again restores it at the same address.
DELETE
/
api
/
v1
/
org
/
canvas-publications
/
{publication_id}
Unpublish a canvas page
import requests
url = "https://platform.ankra.app/api/v1/org/canvas-publications/{publication_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/canvas-publications/{publication_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/canvas-publications/{publication_id} \
--header 'Authorization: Bearer <token>'{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"reason": "<string>",
"code": "<string>",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}