projects

Set a project's trace retention policy

Assign an existing trace retention policy to a project, or reset the project to the default policy with a null policy_id. Retention policies are standalone, reusable entities: this endpoint only changes which policy the project points at, and never creates, edits, or deletes a policy.

patch/v1/projects/{project_identifier}/retention

Path parameters

project_identifierstring required

The project identifier: either project ID or project name.

The project identifier: either project ID or project name.

Request body

policy_idstring nullable required

The ID (GlobalID) of an existing trace retention policy to assign, or null to reset the project to the default policy.

Response

The project's retention policy assignment

Changes

Changed in 1 of the 70 revisions of this API.1