> ## Documentation Index
> Fetch the complete documentation index at: https://docs.re-factor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Run Gold Label

> Update a specific gold label for a run

Update an existing gold label for a run. You can modify the text value or object value, but you cannot change the output resource name.


## OpenAPI

````yaml PUT /v1/run/{run_id}/gold-label/{gold_label_id}
openapi: 3.1.0
info:
  title: re-factor API Reference
  version: 1.0.0
  description: API specification for re-factor system based on schema definitions
servers: []
security:
  - BearerAuth: []
paths:
  /v1/run/{run_id}/gold-label/{gold_label_id}:
    parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: The ID of the run
      - name: gold_label_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: The ID of the gold label
    put:
      summary: Update run gold label
      description: Update a specific gold label for a run
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                text_value:
                  type: string
                object_value:
                  type: object
                  additionalProperties: true
                object_value_is_partial:
                  type: boolean
      responses:
        '200':
          description: Gold label updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunGoldLabel'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    RunGoldLabel:
      type: object
      required:
        - id
        - account_id
        - run_id
        - output_resource_name
        - created_at
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the gold label
        account_id:
          type: string
          description: ID of the account that owns this gold label
        run_id:
          type: string
          format: uuid
          description: ID of the run this gold label belongs to
        output_resource_name:
          type: string
          description: Name of the output resource this gold label is for
        text_value:
          type: string
          nullable: true
          description: Text value for the gold label
        object_value:
          type: object
          nullable: true
          additionalProperties: true
          description: Object value for the gold label
        object_value_is_partial:
          type: boolean
          nullable: true
          description: Whether the object value is a partial gold label
        created_by:
          type: string
          nullable: true
          description: ID of the user who created the gold label
        created_at:
          type: string
          format: date-time
          description: When the gold label was created
        updated_by:
          type: string
          nullable: true
          description: ID of the user who last updated the gold label
        updated_at:
          type: string
          format: date-time
          description: When the gold label was last updated
  responses:
    UnauthorizedError:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    NotFoundError:
      description: Not Found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````