このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください

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}"