import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/environments/{environment_id}/log-pattern-marks"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/environments/{environment_id}/log-pattern-marks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/environments/{environment_id}/log-pattern-marks \
--cookie ankra_session={
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marks": [
{
"pattern": "<string>",
"pattern_hash": "<string>",
"mark": "resolved",
"marked_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"marked_at": "2023-11-07T05:31:56Z"
}
],
"limit": 2
}{
"detail": "<string>"
}List the pattern marks of an application's Logs (browser session)
Every mark set on the patterns of one environment of the application’s Logs (resolved or ignored), shared with everyone who can read the application, newest first, with who set each one and when. The list is whole: an environment keeps at most 500, and limit says so. A 200 is a read that succeeded; any read that failed answers an error status, never an empty list. A mark changes nothing the platform reads or counts: lines, counts and the AI tools’ grouping are the same with or without it. What “comes back as new” means is the page’s to decide, from the mark’s time and the releases it has. Requires applications.read.
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/environments/{environment_id}/log-pattern-marks"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/environments/{environment_id}/log-pattern-marks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/environments/{environment_id}/log-pattern-marks \
--cookie ankra_session={
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marks": [
{
"pattern": "<string>",
"pattern_hash": "<string>",
"mark": "resolved",
"marked_by": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"marked_at": "2023-11-07T05:31:56Z"
}
],
"limit": 2
}{
"detail": "<string>"
}Authorizations
Response
Successful Response
Every mark set on the patterns of one environment of an application's Logs, shared with everyone who can read the application. Answered only for a read that succeeded: a read that failed answers an error status, never an empty list.