Case - Create

POST

Request

This endpoint expects an object.
caseId
stringRequired
createdTimestamp
doubleRequired
priority
enumRequired
Allowed values: P1P2P3P4
entityDetails
unionRequired
tags
list of objectsOptional
Generic key-value pair model to append a custom variable being sent to Flagright API
creationReason
objectOptional
relatedCases
list of stringsOptional
assignments
list of objectsOptional

Response

This endpoint returns an object
caseId
string
createdTimestamp
double
caseStatus
enum
updatedAt
double
priority
enum
Allowed values: P1P2P3P4
entityDetails
union
tags
list of objectsOptional
Generic key-value pair model to append a custom variable being sent to Flagright API
creationReason
objectOptional
relatedCases
list of stringsOptional
assignments
list of objectsOptional

Errors

POST
1curl -X POST https://sandbox.api.flagright.com/management/cases \
2 -H "x-api-key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "caseId": "string",
6 "createdTimestamp": 1,
7 "priority": "P1",
8 "entityDetails": {
9 "type": "USER",
10 "userId": "string"
11 }
12}'
1{
2 "caseId": "string",
3 "createdTimestamp": 1,
4 "caseStatus": "OPEN",
5 "updatedAt": 1,
6 "priority": "P1",
7 "entityDetails": {
8 "type": "USER",
9 "userId": "string"
10 },
11 "tags": [
12 {
13 "key": "string",
14 "value": "string"
15 }
16 ],
17 "creationReason": {
18 "reasons": [
19 "string"
20 ],
21 "comment": "string",
22 "timestamp": 1
23 },
24 "relatedCases": [
25 "string"
26 ],
27 "assignments": [
28 {
29 "assigneeEmail": "string",
30 "assignedByEmail": "string",
31 "timestamp": 1
32 }
33 ]
34}