Assign multiple cases to a user
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"assignee": {
"userId": "3af152ee-9eaf-4803-87f1-23c5fb2fbaa0"
},
"ids": [
"3f166e9f-3c88-4af2-b52e-138f339dab3e",
"CASE-123"
]
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1"
payload = {
"assignee": { "userId": "3af152ee-9eaf-4803-87f1-23c5fb2fbaa0" },
"ids": ["3f166e9f-3c88-4af2-b52e-138f339dab3e", "CASE-123"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assignee: {userId: '3af152ee-9eaf-4803-87f1-23c5fb2fbaa0'},
ids: ['3f166e9f-3c88-4af2-b52e-138f339dab3e', 'CASE-123']
})
};
fetch('https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'assignee' => [
'userId' => '3af152ee-9eaf-4803-87f1-23c5fb2fbaa0'
],
'ids' => [
'3f166e9f-3c88-4af2-b52e-138f339dab3e',
'CASE-123'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1"
payload := strings.NewReader("{\n \"assignee\": {\n \"userId\": \"3af152ee-9eaf-4803-87f1-23c5fb2fbaa0\"\n },\n \"ids\": [\n \"3f166e9f-3c88-4af2-b52e-138f339dab3e\",\n \"CASE-123\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assignee\": {\n \"userId\": \"3af152ee-9eaf-4803-87f1-23c5fb2fbaa0\"\n },\n \"ids\": [\n \"3f166e9f-3c88-4af2-b52e-138f339dab3e\",\n \"CASE-123\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assignee\": {\n \"userId\": \"3af152ee-9eaf-4803-87f1-23c5fb2fbaa0\"\n },\n \"ids\": [\n \"3f166e9f-3c88-4af2-b52e-138f339dab3e\",\n \"CASE-123\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"cases": [
{
"createTime": "2025-09-22T10:30:00.000Z",
"groupings": [
{
"key": "service",
"value": "payments"
}
],
"id": "3f166e9f-3c88-4af2-b52e-138f339dab3e",
"impactedEntities": [
{
"apmService": {
"language": "go",
"name": "payments-api"
},
"apmDatabase": {
"name": "orders-db",
"system": "postgresql"
}
}
],
"labels": [
{
"key": "service",
"value": "payments"
}
],
"title": "Database outage investigation",
"acknowledgeTime": "2023-11-07T05:31:56Z",
"aiSummary": "<string>",
"assignee": {
"userId": "3af152ee-9eaf-4803-87f1-23c5fb2fbaa0"
},
"caseIndicators": {
"alertIndicators": [
{
"alertId": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"alertVersions": [
"1eae3615-79e7-4b54-88e0-6a77def653bf",
"2fbf4726-8af8-5c65-99f1-7b88ef764c0g"
],
"latestAlertVersion": "1eae3615-79e7-4b54-88e0-6a77def653bf",
"permutations": [
{
"permutation": {}
}
],
"triggerTime": "2025-09-22T10:30:00.000Z",
"resolveTime": "2025-09-22T11:05:00.000Z",
"suppression": {
"activeSuppressionRules": {
"suppressionRuleIds": [
"1eae3615-79e7-4b54-88e0-6a77def653bf",
"2fbf4726-8af8-5c65-99f1-7b88ef764c0e"
]
},
"alertDefinitionMuted": {},
"suppressedTime": "2025-09-22T10:30:00.000Z"
}
}
],
"genericIndicators": [
{
"externalId": "et-issue-8827",
"id": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"lastTriggeredAt": "2025-09-22T10:30:00.000Z",
"entityLinks": [
{
"url": "https://app.coralogix.com/error-tracking/issues/abc123"
}
],
"labels": [
{
"key": "service",
"value": "payments"
}
],
"lastResolvedAt": "2025-09-22T11:05:00.000Z"
}
],
"prometheusAlertIndicators": [
{
"alertGroupId": "5d41402abc4b2a76b9719d911017c592",
"alerts": [
{
"alertGroupId": "5d41402abc4b2a76b9719d911017c592",
"alertName": "HighRequestLatency",
"annotations": {},
"createdAt": "2025-09-22T10:30:00.000Z",
"fingerprint": "a1b2c3d4e5f6a7b8",
"generatorUrl": "https://prometheus.example.com/graph?g0.expr=...",
"labels": {},
"status": {
"triggered": {
"triggeredAt": "2025-09-22T10:30:00.000Z"
},
"resolved": {
"resolvedAt": "2025-09-22T11:05:00.000Z",
"triggeredAt": "2025-09-22T10:30:00.000Z"
}
},
"updatedAt": "2025-09-22T11:05:00.000Z",
"query": {
"promql": "histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m])) > 1"
}
}
],
"externalUrl": "https://alertmanager.example.com",
"groupLabels": {},
"receivedAt": "2025-09-22T10:30:00.000Z",
"receiver": "webhook-coralogix",
"status": {
"triggered": {
"triggeredAt": "2025-09-22T10:30:00.000Z"
},
"resolved": {
"resolvedAt": "2025-09-22T11:05:00.000Z",
"triggeredAt": "2025-09-22T10:30:00.000Z"
}
},
"updatedAt": "2025-09-22T11:05:00.000Z"
}
]
},
"duration": "<string>",
"kpiBreaches": {
"breachedKpis": [
{
"breachedAt": "2025-09-22T11:00:00.000Z",
"createdAt": "2025-09-22T11:00:00.000Z",
"id": "3f166e9f-3c88-4af2-b52e-138f339dab3e"
}
]
},
"ollyAnalysis": {
"completedAt": "2025-09-22T10:30:00.000Z",
"payload": {
"generatedAt": "2025-09-22T10:30:00.000Z",
"investigationSummary": "Latency spike on checkout-service correlates with a deploy of v1.42 and elevated DB pool saturation.",
"remediationRecommendations": [
"Roll back checkout-service to v1.41",
"Increase orders Postgres pool size to 200"
],
"rootCause": "Connection-pool exhaustion on the orders Postgres instance."
}
},
"priorityDetails": {},
"readableId": "CASE-123",
"resolutionDetails": {
"reason": "Case was not applicable.",
"resolveTime": "2025-09-22T11:15:00.000Z",
"resolvedBy": {
"system": {},
"apiKey": {},
"cxUser": {},
"microsoftTeams": {},
"pagerDuty": {},
"prometheusAlertManager": {},
"serviceNow": {},
"slack": {}
}
},
"updateTime": "2023-11-07T05:31:56Z"
}
]
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Cases Service
Assign multiple cases to a user
Assign multiple cases to a specific user in a single operation.
Requires the following permissions:
case:Assign
Assign multiple cases to a user
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"assignee": {
"userId": "3af152ee-9eaf-4803-87f1-23c5fb2fbaa0"
},
"ids": [
"3f166e9f-3c88-4af2-b52e-138f339dab3e",
"CASE-123"
]
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1"
payload = {
"assignee": { "userId": "3af152ee-9eaf-4803-87f1-23c5fb2fbaa0" },
"ids": ["3f166e9f-3c88-4af2-b52e-138f339dab3e", "CASE-123"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assignee: {userId: '3af152ee-9eaf-4803-87f1-23c5fb2fbaa0'},
ids: ['3f166e9f-3c88-4af2-b52e-138f339dab3e', 'CASE-123']
})
};
fetch('https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'assignee' => [
'userId' => '3af152ee-9eaf-4803-87f1-23c5fb2fbaa0'
],
'ids' => [
'3f166e9f-3c88-4af2-b52e-138f339dab3e',
'CASE-123'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1"
payload := strings.NewReader("{\n \"assignee\": {\n \"userId\": \"3af152ee-9eaf-4803-87f1-23c5fb2fbaa0\"\n },\n \"ids\": [\n \"3f166e9f-3c88-4af2-b52e-138f339dab3e\",\n \"CASE-123\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assignee\": {\n \"userId\": \"3af152ee-9eaf-4803-87f1-23c5fb2fbaa0\"\n },\n \"ids\": [\n \"3f166e9f-3c88-4af2-b52e-138f339dab3e\",\n \"CASE-123\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/5/cases/assigned/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assignee\": {\n \"userId\": \"3af152ee-9eaf-4803-87f1-23c5fb2fbaa0\"\n },\n \"ids\": [\n \"3f166e9f-3c88-4af2-b52e-138f339dab3e\",\n \"CASE-123\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"cases": [
{
"createTime": "2025-09-22T10:30:00.000Z",
"groupings": [
{
"key": "service",
"value": "payments"
}
],
"id": "3f166e9f-3c88-4af2-b52e-138f339dab3e",
"impactedEntities": [
{
"apmService": {
"language": "go",
"name": "payments-api"
},
"apmDatabase": {
"name": "orders-db",
"system": "postgresql"
}
}
],
"labels": [
{
"key": "service",
"value": "payments"
}
],
"title": "Database outage investigation",
"acknowledgeTime": "2023-11-07T05:31:56Z",
"aiSummary": "<string>",
"assignee": {
"userId": "3af152ee-9eaf-4803-87f1-23c5fb2fbaa0"
},
"caseIndicators": {
"alertIndicators": [
{
"alertId": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"alertVersions": [
"1eae3615-79e7-4b54-88e0-6a77def653bf",
"2fbf4726-8af8-5c65-99f1-7b88ef764c0g"
],
"latestAlertVersion": "1eae3615-79e7-4b54-88e0-6a77def653bf",
"permutations": [
{
"permutation": {}
}
],
"triggerTime": "2025-09-22T10:30:00.000Z",
"resolveTime": "2025-09-22T11:05:00.000Z",
"suppression": {
"activeSuppressionRules": {
"suppressionRuleIds": [
"1eae3615-79e7-4b54-88e0-6a77def653bf",
"2fbf4726-8af8-5c65-99f1-7b88ef764c0e"
]
},
"alertDefinitionMuted": {},
"suppressedTime": "2025-09-22T10:30:00.000Z"
}
}
],
"genericIndicators": [
{
"externalId": "et-issue-8827",
"id": "f56645c5-9cd4-4b9f-961f-4f852d8835a0",
"lastTriggeredAt": "2025-09-22T10:30:00.000Z",
"entityLinks": [
{
"url": "https://app.coralogix.com/error-tracking/issues/abc123"
}
],
"labels": [
{
"key": "service",
"value": "payments"
}
],
"lastResolvedAt": "2025-09-22T11:05:00.000Z"
}
],
"prometheusAlertIndicators": [
{
"alertGroupId": "5d41402abc4b2a76b9719d911017c592",
"alerts": [
{
"alertGroupId": "5d41402abc4b2a76b9719d911017c592",
"alertName": "HighRequestLatency",
"annotations": {},
"createdAt": "2025-09-22T10:30:00.000Z",
"fingerprint": "a1b2c3d4e5f6a7b8",
"generatorUrl": "https://prometheus.example.com/graph?g0.expr=...",
"labels": {},
"status": {
"triggered": {
"triggeredAt": "2025-09-22T10:30:00.000Z"
},
"resolved": {
"resolvedAt": "2025-09-22T11:05:00.000Z",
"triggeredAt": "2025-09-22T10:30:00.000Z"
}
},
"updatedAt": "2025-09-22T11:05:00.000Z",
"query": {
"promql": "histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m])) > 1"
}
}
],
"externalUrl": "https://alertmanager.example.com",
"groupLabels": {},
"receivedAt": "2025-09-22T10:30:00.000Z",
"receiver": "webhook-coralogix",
"status": {
"triggered": {
"triggeredAt": "2025-09-22T10:30:00.000Z"
},
"resolved": {
"resolvedAt": "2025-09-22T11:05:00.000Z",
"triggeredAt": "2025-09-22T10:30:00.000Z"
}
},
"updatedAt": "2025-09-22T11:05:00.000Z"
}
]
},
"duration": "<string>",
"kpiBreaches": {
"breachedKpis": [
{
"breachedAt": "2025-09-22T11:00:00.000Z",
"createdAt": "2025-09-22T11:00:00.000Z",
"id": "3f166e9f-3c88-4af2-b52e-138f339dab3e"
}
]
},
"ollyAnalysis": {
"completedAt": "2025-09-22T10:30:00.000Z",
"payload": {
"generatedAt": "2025-09-22T10:30:00.000Z",
"investigationSummary": "Latency spike on checkout-service correlates with a deploy of v1.42 and elevated DB pool saturation.",
"remediationRecommendations": [
"Roll back checkout-service to v1.41",
"Increase orders Postgres pool size to 200"
],
"rootCause": "Connection-pool exhaustion on the orders Postgres instance."
}
},
"priorityDetails": {},
"readableId": "CASE-123",
"resolutionDetails": {
"reason": "Case was not applicable.",
"resolveTime": "2025-09-22T11:15:00.000Z",
"resolvedBy": {
"system": {},
"apiKey": {},
"cxUser": {},
"microsoftTeams": {},
"pagerDuty": {},
"prometheusAlertManager": {},
"serviceNow": {},
"slack": {}
}
},
"updateTime": "2023-11-07T05:31:56Z"
}
]
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Authorizations
API key authentication
Body
application/json
Request to assign multiple cases to a user
Minimal user identity information used in case assignments.
Show child attributes
Show child attributes
IDs of the cases to assign. Each entry accepts either the case UUID (the id field on a case) or the readable identifier (the readable_id field, e.g. CASE-123).
Required array length:
1 - 1000 elementsIDs of the cases to assign. Each entry accepts either the case UUID (the id field on a case) or the readable identifier (the readable_id field, e.g. CASE-123).
Required string length:
1 - 64Pattern:
^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[A-Z]+-[0-9]+)$Example:
[
"3f166e9f-3c88-4af2-b52e-138f339dab3e",
"CASE-123"
]
Response
Response containing the updated cases
Updated cases
Maximum array length:
1000Show child attributes
Show child attributes
Was this page helpful?
⌘I