import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs"
headers = {"cookie": "ankra_session="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs \
--cookie ankra_session={
"tabs": [
{
"key": "<string>",
"kind": "ankra",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"ankra_order": true,
"left_out": 1,
"version": 2,
"updated_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z",
"last": {
"tab": "<string>",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"detail": "<string>"
}{
"detail": "<string>",
"error_code": "metrics_tabs_conflict",
"current_version": 2,
"metrics_tabs": {
"tabs": [
{
"key": "<string>",
"kind": "ankra",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"ankra_order": true,
"left_out": 1,
"version": 2,
"updated_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z",
"last": {
"tab": "<string>",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Go back to Ankra's Metrics tabs (browser session)
Puts the application’s Metrics back on Ankra’s order on the version the query’s base_version names, and counts the version on, so a page that still shows the order before is refused with 409 rather than overwriting Ankra’s order. Without base_version the caller’s page showed tabs nobody ever changed: then nothing changes, and on tabs that carry a version the answer is 409. On Ankra’s order already, with its version, nothing changes. The change is audited on the application with the version it replaced and the version it wrote. Requires applications.write.
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs"
headers = {"cookie": "ankra_session="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.platform.ankra.app/org/applications/{application_id}/metrics-tabs \
--cookie ankra_session={
"tabs": [
{
"key": "<string>",
"kind": "ankra",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"ankra_order": true,
"left_out": 1,
"version": 2,
"updated_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z",
"last": {
"tab": "<string>",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"detail": "<string>"
}{
"detail": "<string>",
"error_code": "metrics_tabs_conflict",
"current_version": 2,
"metrics_tabs": {
"tabs": [
{
"key": "<string>",
"kind": "ankra",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"ankra_order": true,
"left_out": 1,
"version": 2,
"updated_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z",
"last": {
"tab": "<string>",
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Query Parameters
Response
The Metrics shows Ankra's order
The tabs of an application's Metrics as the caller sees them: Ankra's order, which the page draws, or the order someone arranged for everyone who opens the application.
The version of the last change to the tabs: the base_version of the next change. Going back to Ankra's order is a change like any other and counts the version on, so it stays set on Ankra's order after that. Null only when nobody ever changed the tabs.
x >= 1