Arize Phoenix TS
    Preparing search index...
    • Assign an existing trace retention policy to a project, or reset the project to the default policy.

      This helper only changes the project's assignment. It does not create, retrieve, update, or delete retention policies.

      Parameters

      Returns Promise<{ policy_id: string | null; project_id: string }>

      The project's resulting retention-policy assignment.

      import { setProjectRetentionPolicy } from "@arizeai/phoenix-client/projects";

      await setProjectRetentionPolicy({
      projectName: "support-bot",
      policyId: "UHJvamVjdFRyYWNlUmV0ZW50aW9uUG9saWN5OjI=",
      });

      await setProjectRetentionPolicy({
      projectId: "UHJvamVjdDox",
      policyId: null,
      });