> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace the set of annotation configurations assigned to a project

> Replace the project's entire set of assigned annotation configurations with the provided set. The server diffs the desired set against the current set: configs in the body but not assigned are added, and configs assigned but not in the body are removed. An empty array clears all assignments.



## OpenAPI

````yaml put /v1/projects/{project_identifier}/annotation_configs
openapi: 3.1.0
info:
  title: Arize-Phoenix REST API
  description: Schema for Arize-Phoenix REST API
  version: '1.0'
servers: []
security: []
paths:
  /v1/projects/{project_identifier}/annotation_configs:
    put:
      tags:
        - annotation_configs
      summary: Replace the set of annotation configurations assigned to a project
      description: >-
        Replace the project's entire set of assigned annotation configurations
        with the provided set. The server diffs the desired set against the
        current set: configs in the body but not assigned are added, and configs
        assigned but not in the body are removed. An empty array clears all
        assignments.
      operationId: setProjectAnnotationConfigs
      parameters:
        - name: project_identifier
          in: path
          required: true
          schema:
            type: string
            description: 'The project identifier: either project ID or project name.'
            title: Project Identifier
          description: 'The project identifier: either project ID or project name.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetProjectAnnotationConfigsRequestBody'
      responses:
        '200':
          description: >-
            The resulting set of annotation configurations assigned to the
            project
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetProjectAnnotationConfigsResponseBody'
        '403':
          description: Forbidden
          content:
            text/plain:
              schema:
                type: string
        '404':
          content:
            text/plain:
              schema:
                type: string
          description: Not Found
        '422':
          description: Unprocessable Entity
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    SetProjectAnnotationConfigsRequestBody:
      properties:
        annotation_config_ids:
          items:
            type: string
          type: array
          title: Annotation Config Ids
          description: >-
            The complete set of annotation configuration GlobalIDs that should
            be assigned to the project. Configs not in this list are unassigned;
            an empty list clears all assignments.
      type: object
      required:
        - annotation_config_ids
      title: SetProjectAnnotationConfigsRequestBody
    SetProjectAnnotationConfigsResponseBody:
      properties:
        data:
          items:
            oneOf:
              - $ref: '#/components/schemas/CategoricalAnnotationConfig'
              - $ref: '#/components/schemas/ContinuousAnnotationConfig'
              - $ref: '#/components/schemas/FreeformAnnotationConfig'
            discriminator:
              propertyName: type
              mapping:
                CATEGORICAL:
                  $ref: '#/components/schemas/CategoricalAnnotationConfig'
                CONTINUOUS:
                  $ref: '#/components/schemas/ContinuousAnnotationConfig'
                FREEFORM:
                  $ref: '#/components/schemas/FreeformAnnotationConfig'
          type: array
          title: Data
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      type: object
      required:
        - data
        - next_cursor
      title: SetProjectAnnotationConfigsResponseBody
    CategoricalAnnotationConfig:
      properties:
        name:
          type: string
          title: Name
        type:
          type: string
          const: CATEGORICAL
          title: Type
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        optimization_direction:
          $ref: '#/components/schemas/OptimizationDirection'
        values:
          items:
            $ref: '#/components/schemas/CategoricalAnnotationValue'
          type: array
          title: Values
        id:
          type: string
          title: Id
      type: object
      required:
        - name
        - type
        - optimization_direction
        - values
        - id
      title: CategoricalAnnotationConfig
    ContinuousAnnotationConfig:
      properties:
        name:
          type: string
          title: Name
        type:
          type: string
          const: CONTINUOUS
          title: Type
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        optimization_direction:
          $ref: '#/components/schemas/OptimizationDirection'
        lower_bound:
          anyOf:
            - type: number
            - type: 'null'
          title: Lower Bound
        upper_bound:
          anyOf:
            - type: number
            - type: 'null'
          title: Upper Bound
        id:
          type: string
          title: Id
      type: object
      required:
        - name
        - type
        - optimization_direction
        - id
      title: ContinuousAnnotationConfig
    FreeformAnnotationConfig:
      properties:
        name:
          type: string
          title: Name
        type:
          type: string
          const: FREEFORM
          title: Type
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        optimization_direction:
          anyOf:
            - $ref: '#/components/schemas/OptimizationDirection'
            - type: 'null'
        threshold:
          anyOf:
            - type: number
            - type: 'null'
          title: Threshold
        lower_bound:
          anyOf:
            - type: number
            - type: 'null'
          title: Lower Bound
        upper_bound:
          anyOf:
            - type: number
            - type: 'null'
          title: Upper Bound
        id:
          type: string
          title: Id
      type: object
      required:
        - name
        - type
        - id
      title: FreeformAnnotationConfig
    OptimizationDirection:
      type: string
      enum:
        - MINIMIZE
        - MAXIMIZE
        - NONE
      title: OptimizationDirection
    CategoricalAnnotationValue:
      properties:
        label:
          type: string
          title: Label
        score:
          anyOf:
            - type: number
            - type: 'null'
          title: Score
      type: object
      required:
        - label
      title: CategoricalAnnotationValue

````