Watch a case

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

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

Overview

Adds a user (identified by their UUID) as a watcher of a case. The user receives notifications about subsequent updates to the case.

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

Arguments

Path Parameters

Name

Type

Description

case_id [required]

string

Case’s UUID or key

user_uuid [required]

string

The UUID of the user to add or remove as a watcher.

Response

Created

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"
export user_uuid="8146583c-0b5f-11ec-abf8-da7ad0900001"
# 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.us2.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/cases/${case_id}/watchers/${user_uuid}" \ -H "Accept: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"