List AI ticket changes
import requests
url = "https://platform.ankra.app/api/v1/org/ai-tickets/{ticket_id}/changes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-tickets/{ticket_id}/changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/ai-tickets/{ticket_id}/changes \
--header 'Authorization: Bearer <token>'{
"changes": [
{
"action_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation": "<string>",
"tool_name": "<string>",
"description": "<string>",
"status": "<string>",
"approved_by": "<string>",
"risk_level": "<string>",
"reversible": true,
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_name": "<string>",
"stack_name": "<string>",
"conversation_id": "<string>",
"session_id": "<string>",
"bill_of_materials": "<unknown>",
"execution": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "<string>",
"status": "<string>",
"outcome": "<string>",
"error_excerpt": "<string>",
"step_summary": {
"total": 123,
"succeeded": 123,
"failed": 123,
"running": 123,
"pending": 123
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"linked_at": "2023-11-07T05:31:56Z",
"proposed_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Tickets
List AI ticket changes
Lists the changes applied on a ticket’s behalf: each linked AI action with the cluster and stack it touched, who approved it, its change preview and the execution it produced.
GET
/
api
/
v1
/
org
/
ai-tickets
/
{ticket_id}
/
changes
List AI ticket changes
import requests
url = "https://platform.ankra.app/api/v1/org/ai-tickets/{ticket_id}/changes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-tickets/{ticket_id}/changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/ai-tickets/{ticket_id}/changes \
--header 'Authorization: Bearer <token>'{
"changes": [
{
"action_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation": "<string>",
"tool_name": "<string>",
"description": "<string>",
"status": "<string>",
"approved_by": "<string>",
"risk_level": "<string>",
"reversible": true,
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_name": "<string>",
"stack_name": "<string>",
"conversation_id": "<string>",
"session_id": "<string>",
"bill_of_materials": "<unknown>",
"execution": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "<string>",
"status": "<string>",
"outcome": "<string>",
"error_excerpt": "<string>",
"step_summary": {
"total": 123,
"succeeded": 123,
"failed": 123,
"running": 123,
"pending": 123
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"linked_at": "2023-11-07T05:31:56Z",
"proposed_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}