メインコンテンツへスキップ
POST
/
cases
Create Case
curl --request POST \
  --url https://local.casebender.com:3000/api/cases \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "title": "<string>",
  "statusValue": "<string>",
  "severity": 2.5,
  "tlp": 2,
  "pap": 1.5,
  "organizations": [
    "<string>"
  ],
  "visibleToAllOrganizations": true,
  "description": "<string>",
  "tags": [
    {
      "id": 123
    }
  ],
  "customFields": {},
  "createdAt": "<string>"
}
'
{
  "id": "<string>",
  "tinyId": 123,
  "title": "<string>",
  "statusValue": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "severity": 123,
  "tlp": 123,
  "pap": 123,
  "createdById": "<string>",
  "visibleToAllOrganizations": true,
  "customFields": {},
  "extraData": {},
  "aiInsights": {},
  "description": "<string>",
  "deletedAt": "<string>",
  "assigneeId": "<string>",
  "flag": true
}

承認

X-Api-Key
string
header
必須

ボディ

application/json
title
string
必須
statusValue
string
必須
severity
number
必須
必須範囲: 1 <= x <= 4
tlp
number
必須
必須範囲: 0 <= x <= 4
pap
number
必須
必須範囲: 0 <= x <= 3
organizations
string[]
visibleToAllOrganizations
boolean
description
string
tags
object[]
customFields
object
createdAt
string

レスポンス

Successful response

id
string
必須
tinyId
integer
必須
title
string
必須
statusValue
string
必須
createdAt
string
必須
updatedAt
string
必須
severity
integer
必須
tlp
integer
必須
pap
integer
必須
createdById
string
必須
visibleToAllOrganizations
boolean
必須
customFields
object
必須
extraData
object
必須
aiInsights
object
必須
description
string | null
deletedAt
string | null
assigneeId
string | null
flag
boolean | null