Assign an existing annotation config to a project.
Assignment is idempotent: assigning a config that is already assigned to the project succeeds and returns the config.
The project and annotation config to assign.
The assigned annotation config.
HttpError when Phoenix rejects the request, e.g. with a 404 if the project or annotation config does not exist.
Phoenix server >= 17.16.0
import { assignProjectAnnotationConfig } from "@arizeai/phoenix-client/projects";const config = await assignProjectAnnotationConfig({ projectName: "support-bot", configName: "correctness",}); Copy
import { assignProjectAnnotationConfig } from "@arizeai/phoenix-client/projects";const config = await assignProjectAnnotationConfig({ projectName: "support-bot", configName: "correctness",});
Assign an existing annotation config to a project.
Assignment is idempotent: assigning a config that is already assigned to the project succeeds and returns the config.