이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Case Management Type

View and configure case types within Case Management. See the Case Management page for more information.

GET https://api.ap1.datadoghq.com/api/v2/cases/typeshttps://api.ap2.datadoghq.com/api/v2/cases/typeshttps://api.datadoghq.eu/api/v2/cases/typeshttps://api.ddog-gov.com/api/v2/cases/typeshttps://api.datadoghq.com/api/v2/cases/typeshttps://api.us3.datadoghq.com/api/v2/cases/typeshttps://api.us5.datadoghq.com/api/v2/cases/types

개요

Get all case types

응답

OK

Case types response.

Expand All

항목

유형

설명

data

[object]

List of case types

attributes

object

Case Type resource attributes

deleted_at

date-time

Timestamp of when the case type was deleted

description

string

Case type description.

emoji

string

Case type emoji.

name [required]

string

Case type name.

id

string

Case type's identifier

type

enum

Case type resource type Allowed enum values: case_type

default: case_type

{
  "data": [
    {
      "attributes": {
        "deleted_at": "2019-09-19T10:00:00.000Z",
        "description": "Investigations done in case management",
        "emoji": "🕵🏻‍♂️",
        "name": "Investigation"
      },
      "id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
      "type": "case_type"
    }
  ]
}

Unauthorized

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Forbidden

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Too many requests

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

코드 사례

                  # Curl command
curl -X GET "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/cases/types" \ -H "Accept: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"

POST https://api.ap1.datadoghq.com/api/v2/cases/typeshttps://api.ap2.datadoghq.com/api/v2/cases/typeshttps://api.datadoghq.eu/api/v2/cases/typeshttps://api.ddog-gov.com/api/v2/cases/typeshttps://api.datadoghq.com/api/v2/cases/typeshttps://api.us3.datadoghq.com/api/v2/cases/typeshttps://api.us5.datadoghq.com/api/v2/cases/types

개요

Create a Case Type

요청

Body Data (required)

Case type payload

Expand All

항목

유형

설명

data [required]

object

Case type

attributes [required]

object

Case Type resource attributes

deleted_at

date-time

Timestamp of when the case type was deleted

description

string

Case type description.

emoji

string

Case type emoji.

name [required]

string

Case type name.

type [required]

enum

Case type resource type Allowed enum values: case_type

default: case_type

{
  "data": {
    "attributes": {
      "description": "Investigations done in case management",
      "emoji": "\ud83d\udc51",
      "name": "Investigation"
    },
    "type": "case_type"
  }
}

응답

CREATED

Case type response

Expand All

항목

유형

설명

data

object

The definition of CaseType object.

attributes

object

Case Type resource attributes

deleted_at

date-time

Timestamp of when the case type was deleted

description

string

Case type description.

emoji

string

Case type emoji.

name [required]

string

Case type name.

id

string

Case type's identifier

type

enum

Case type resource type Allowed enum values: case_type

default: case_type

{
  "data": {
    "attributes": {
      "deleted_at": "2019-09-19T10:00:00.000Z",
      "description": "Investigations done in case management",
      "emoji": "🕵🏻‍♂️",
      "name": "Investigation"
    },
    "id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
    "type": "case_type"
  }
}

Bad Request

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Unauthorized

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Forbidden

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Too many requests

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

코드 사례

                          # Curl command
curl -X POST "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/cases/types" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \ -d @- << EOF { "data": { "attributes": { "description": "Investigations done in case management", "emoji": "\ud83d\udc51", "name": "Investigation" }, "type": "case_type" } } EOF

DELETE https://api.ap1.datadoghq.com/api/v2/cases/types/{case_type_id}https://api.ap2.datadoghq.com/api/v2/cases/types/{case_type_id}https://api.datadoghq.eu/api/v2/cases/types/{case_type_id}https://api.ddog-gov.com/api/v2/cases/types/{case_type_id}https://api.datadoghq.com/api/v2/cases/types/{case_type_id}https://api.us3.datadoghq.com/api/v2/cases/types/{case_type_id}https://api.us5.datadoghq.com/api/v2/cases/types/{case_type_id}

개요

Delete a case type

인수

경로 파라미터

이름

유형

설명

case_type_id [required]

string

Case type’s UUID

응답

No Content

Unauthorized

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Forbidden

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Too many requests

API error response.

Expand All

항목

유형

설명

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

코드 사례

                  # Path parameters
export case_type_id="f98a5a5b-e0ff-45d4-b2f5-afe6e74de505"
# Curl command
curl -X DELETE "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/cases/types/${case_type_id}" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"