The project and its desired annotation configs.
The annotation configs assigned to the project after the update.
HttpError when Phoenix rejects the request, e.g. with a 404 if the project does not exist or a 422 if any config ID is invalid or missing.
import { setProjectAnnotationConfigs } from "@arizeai/phoenix-client/projects";
await setProjectAnnotationConfigs({
projectName: "support-bot",
configIds: ["Q2F0ZWdvcmljYWxBbm5vdGF0aW9uQ29uZmlnOjE="],
});
// Clear every assignment
await setProjectAnnotationConfigs({
projectName: "support-bot",
configIds: [],
});
Replace the full set of annotation configs assigned to a project.
Configs in
configIdsthat are not yet assigned are added, and assigned configs missing fromconfigIdsare removed. The annotation configs themselves are never deleted.