Change an incident's severity or assignee
curl --request PATCH \
--url https://api.hebeat.com/incidents/{incident_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({assignee_user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.hebeat.com/incidents/{incident_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hebeat.com/incidents/{incident_id}"
payload = { "assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"incident": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": 123,
"title": "<string>",
"status": "triggered",
"resolution": "resolved",
"severity": "critical",
"started_at": "2023-11-07T05:31:56Z",
"acknowledged_at": "2023-11-07T05:31:56Z",
"acknowledged_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"acknowledged_by_name": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_name": "<string>",
"duration_ms": 1,
"alert_count": 1,
"firing_alert_count": 1,
"monitor_count": 1,
"monitors": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
]
},
"alerts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_kind": "monitor",
"monitor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"monitor_name": "<string>",
"status": "firing",
"severity": "critical",
"title": "<string>",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"detected_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"auto_resolved": true,
"duration_ms": 1,
"affected_region_codes": [
"us-east"
]
}
],
"timeline": [
{
"type": "event",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "opened",
"sequence": 1,
"occurred_at": "2023-11-07T05:31:56Z",
"alert_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"evidence": {
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region_code": "us-east",
"to_status": "active",
"matching_region_count": 123,
"configured_region_count": 123,
"affected_regions": [
"us-east"
],
"from": "critical",
"to": "critical",
"reminder": 123,
"escalation_step": 123,
"escalation_step_count": 123,
"escalation_policy_name": "<string>",
"assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_name": "<string>"
}
}
],
"timeline_next_cursor": "<string>"
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}Incidents
Change an incident's severity or assignee
PATCH
/
incidents
/
{incident_id}
Change an incident's severity or assignee
curl --request PATCH \
--url https://api.hebeat.com/incidents/{incident_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({assignee_user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.hebeat.com/incidents/{incident_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hebeat.com/incidents/{incident_id}"
payload = { "assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"incident": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": 123,
"title": "<string>",
"status": "triggered",
"resolution": "resolved",
"severity": "critical",
"started_at": "2023-11-07T05:31:56Z",
"acknowledged_at": "2023-11-07T05:31:56Z",
"acknowledged_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"acknowledged_by_name": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_name": "<string>",
"duration_ms": 1,
"alert_count": 1,
"firing_alert_count": 1,
"monitor_count": 1,
"monitors": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
]
},
"alerts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_kind": "monitor",
"monitor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"monitor_name": "<string>",
"status": "firing",
"severity": "critical",
"title": "<string>",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"detected_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"auto_resolved": true,
"duration_ms": 1,
"affected_region_codes": [
"us-east"
]
}
],
"timeline": [
{
"type": "event",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "opened",
"sequence": 1,
"occurred_at": "2023-11-07T05:31:56Z",
"alert_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"evidence": {
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region_code": "us-east",
"to_status": "active",
"matching_region_count": 123,
"configured_region_count": 123,
"affected_regions": [
"us-east"
],
"from": "critical",
"to": "critical",
"reminder": 123,
"escalation_step": 123,
"escalation_step_count": 123,
"escalation_policy_name": "<string>",
"assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_name": "<string>"
}
}
],
"timeline_next_cursor": "<string>"
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}Headers
Body
application/json
Was this page helpful?