メインコンテンツへスキップ
PATCH
/
cases
/
{id}
Update Case
curl --request PATCH \
  --url https://local.casebender.com:3000/api/cases/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "statusValue": "<string>",
  "severity": 2.5,
  "tags": [
    {
      "id": 123
    }
  ],
  "customFields": {},
  "tlp": 2,
  "pap": 1.5,
  "updatedAt": "<string>",
  "assigneeId": "<string>",
  "flag": true,
  "extraData": {},
  "organizations": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "tinyId": 123,
  "title": "<string>",
  "statusValue": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "severity": 123,
  "tlp": 123,
  "pap": 123,
  "createdById": "<string>",
  "visibleToAllOrganizations": true,
  "severityColor": "<string>",
  "severityLabel": "<string>",
  "createdAtLabel": "<string>",
  "updatedAtLabel": "<string>",
  "description": "<string>",
  "deletedAt": "<string>",
  "assigneeId": "<string>",
  "flag": true,
  "customFields": {},
  "assignee": {
    "id": "<string>",
    "email": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "status": "active",
    "password": "<string>",
    "salt": "<string>",
    "image": "<string>",
    "deletedAt": "<string>"
  },
  "createdBy": {
    "id": "<string>",
    "email": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "status": "active",
    "password": "<string>",
    "salt": "<string>",
    "image": "<string>",
    "deletedAt": "<string>"
  },
  "tasks": [
    {
      "id": "<string>",
      "title": "<string>",
      "mandatory": true,
      "description": "<string>",
      "flagged": true,
      "dueDate": "<string>",
      "status": "<string>",
      "caseId": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "createdById": "<string>",
      "assigneeId": "<string>",
      "deletedAt": "<string>",
      "assignee": {
        "id": "<string>",
        "email": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "createdAt": "<string>",
        "updatedAt": "<string>",
        "status": "active",
        "password": "<string>",
        "salt": "<string>",
        "image": "<string>",
        "deletedAt": "<string>"
      }
    }
  ],
  "observables": [
    {
      "id": "<string>",
      "createdById": "<string>",
      "createdAt": "<string>",
      "observableTypeId": 123,
      "data": "<string>",
      "startDate": "<string>",
      "tlp": 123,
      "pap": 123,
      "ioc": true,
      "sighted": true,
      "ignoreSimilarity": true,
      "caseId": "<string>",
      "alertId": "<string>",
      "sightedAt": "<string>",
      "details": "<string>",
      "attachmentId": "<string>",
      "observableType": {
        "id": 123,
        "name": "<string>",
        "isAttachment": true
      },
      "tags": [
        {
          "id": 123,
          "name": "<string>"
        }
      ],
      "analyzerResults": [
        {
          "id": "<string>",
          "jobId": "<string>",
          "observableId": "<string>",
          "analyzerId": "<string>",
          "analyzerName": "<string>",
          "integrationId": 123,
          "status": "Waiting",
          "startDate": "<string>",
          "createdAt": "<string>",
          "endDate": "<string>",
          "extraData": {}
        }
      ],
      "extraData": {}
    }
  ],
  "procedures": [
    {
      "id": 123,
      "description": "<string>",
      "occurDate": "<string>",
      "patternId": 123,
      "createdAt": "<string>",
      "tacticId": 123,
      "createdById": "<string>",
      "caseId": "<string>",
      "alertId": "<string>"
    }
  ],
  "alerts": [
    {
      "id": "<string>",
      "tinyId": 123,
      "title": "<string>",
      "description": "<string>",
      "statusValue": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "count": 123,
      "severity": 123,
      "createdById": "<string>",
      "visibleToAllOrganizations": true,
      "caseId": "<string>",
      "type": "<string>",
      "source": "<string>",
      "sourceRef": "<string>",
      "externalLink": "<string>",
      "tlp": 123,
      "pap": 123,
      "deletedAt": "<string>",
      "assigneeId": "<string>",
      "clientId": "<string>",
      "clientName": "<string>",
      "primaryAlertId": "<string>",
      "aiInsights": {},
      "customFields": {}
    }
  ],
  "tags": [
    {
      "id": 123,
      "name": "<string>"
    }
  ],
  "extraData": {},
  "status": {
    "id": "<string>",
    "stage": "New",
    "label": "<string>",
    "color": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "canDelete": true,
    "value": "<string>"
  },
  "organizations": [
    {
      "id": "<string>",
      "name": "<string>"
    }
  ],
  "aiInsights": {}
}

承認

X-Api-Key
string
header
必須

パスパラメータ

id
string
必須

ボディ

application/json
title
string
description
string | null
statusValue
string
severity
number
必須範囲: 1 <= x <= 4
tags
object[]
customFields
object
tlp
number
必須範囲: 0 <= x <= 4
pap
number
必須範囲: 0 <= x <= 3
updatedAt
string
assigneeId
string | null
flag
boolean | null
extraData
object
organizations
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
必須
severityColor
string
必須
severityLabel
string
必須
createdAtLabel
string
必須
updatedAtLabel
string
必須
description
string | null
deletedAt
string | null
assigneeId
string | null
flag
boolean | null
customFields
object
assignee
object
createdBy
object
tasks
object[]
observables
object[]
procedures
object[]
alerts
object[]
tags
object[]
extraData
object
status
object
organizations
object[]
aiInsights
object