List case watchers

Note: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.

GET https://api.ap1.datadoghq.com/api/v2/cases/{case_id}/watchershttps://api.ap2.datadoghq.com/api/v2/cases/{case_id}/watchershttps://api.datadoghq.eu/api/v2/cases/{case_id}/watchershttps://api.ddog-gov.com/api/v2/cases/{case_id}/watchershttps://api.us2.ddog-gov.com/api/v2/cases/{case_id}/watchershttps://api.datadoghq.com/api/v2/cases/{case_id}/watchershttps://api.us3.datadoghq.com/api/v2/cases/{case_id}/watchershttps://api.us5.datadoghq.com/api/v2/cases/{case_id}/watchers

Overview

Returns the list of users who are watching a case. Watchers receive notifications about updates to the case.

OAuth apps require the cases_read authorization scope to access this endpoint.

Arguments

Path Parameters

Name

Type

Description

case_id [required]

string

Case’s UUID or key

Response

OK

Response containing the list of users watching a case.

Expand All

Field

Type

Description

data [required]

[object]

List of case watchers.

id [required]

string

The primary identifier of the case watcher.

relationships [required]

object

Relationships for a case watcher, linking to the underlying user resource.

user [required]

object

The user relationship for a case watcher.

data [required]

object

Relationship to user object.

id [required]

string

A unique identifier that represents the user.

type [required]

enum

User resource type. Allowed enum values: user

default: user

type [required]

enum

JSON:API resource type for case watchers. Allowed enum values: watcher

default: watcher

{
  "data": [
    {
      "id": "8146583c-0b5f-11ec-abf8-da7ad0900001",
      "relationships": {
        "user": {
          "data": {
            "id": "00000000-0000-0000-0000-000000000000",
            "type": "user"
          }
        }
      },
      "type": "watcher"
    }
  ]
}

Bad Request

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Unauthorized

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Forbidden

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Not Found

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Too many requests

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Code Example

                  # Path parameters
export case_id="f98a5a5b-e0ff-45d4-b2f5-afe6e74de504"
# 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.us2.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/cases/${case_id}/watchers" \ -H "Accept: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"