Skip to main content

case_project_favorites

Creates, updates, deletes, gets or lists a case_project_favorites resource.

Overview

Namecase_project_favorites
TypeResource
Iddatadog.service_management.case_project_favorites

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe UUID of the favorited project. (example: e555e290-ed65-49bd-ae18-8acbfcf18db7)
typestringJSON:API resource type for project favorites. (project_favorite) (default: project_favorite, example: project_favorite)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_case_project_favoritesselectReturns the list of case projects that the current authenticated user has marked as favorites.
favorite_case_projectinsertproject_idMarks a case project as a favorite for the current authenticated user.
unfavorite_case_projectdeleteproject_idRemoves a case project from the current user's favorites list.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
project_idstringProject UUID. (example: e555e290-ed65-49bd-ae18-8acbfcf18db7)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

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

SELECT
id,
type
FROM datadog.service_management.case_project_favorites
;

INSERT examples

Marks a case project as a favorite for the current authenticated user.

INSERT INTO datadog.service_management.case_project_favorites (
project_id
)
SELECT
'{{ project_id }}'
;

DELETE examples

Removes a case project from the current user's favorites list.

DELETE FROM datadog.service_management.case_project_favorites
WHERE project_id = '{{ project_id }}' --required
;