List project favorites

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/projects/favoriteshttps://api.ap2.datadoghq.com/api/v2/cases/projects/favoriteshttps://api.datadoghq.eu/api/v2/cases/projects/favoriteshttps://api.ddog-gov.com/api/v2/cases/projects/favoriteshttps://api.us2.ddog-gov.com/api/v2/cases/projects/favoriteshttps://api.datadoghq.com/api/v2/cases/projects/favoriteshttps://api.us3.datadoghq.com/api/v2/cases/projects/favoriteshttps://api.us5.datadoghq.com/api/v2/cases/projects/favorites

Overview

Returns the list of case projects that the current authenticated user has marked as favorites.

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

Response

OK

Response containing the list of projects the current user has favorited.

Expand All

Field

Type

Description

data [required]

[object]

List of project favorites.

id [required]

string

The UUID of the favorited project.

type [required]

enum

JSON:API resource type for project favorites. Allowed enum values: project_favorite

default: project_favorite

{
  "data": [
    {
      "id": "e555e290-ed65-49bd-ae18-8acbfcf18db7",
      "type": "project_favorite"
    }
  ]
}

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

                  # 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/projects/favorites" \ -H "Accept: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"