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

# Rename Evaluation Pipeline

Rename or retag an evaluation pipeline. Provide `name`, `tags`, or both when you want to update pipeline metadata without recreating the pipeline.

## Related

* [Create Evaluation Pipeline](/reference/create-reports)
* [Delete Evaluation Pipeline](/reference/delete-report)


## OpenAPI

````yaml PATCH /reports/{report_id}/rename
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /reports/{report_id}/rename:
    patch:
      tags:
        - reports
      summary: Rename Evaluation Pipeline
      operationId: renameReport
      parameters:
        - name: report_id
          in: path
          required: true
          schema:
            type: integer
          description: ID of the evaluation pipeline to rename.
      requestBody:
        required: true
        description: Rename or retag payload.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RenameReportRequest'
            examples:
              rename:
                summary: Rename and retag
                value:
                  name: Customer support - production blueprint
                  tags:
                    - production
                    - support
      responses:
        '200':
          description: Evaluation pipeline renamed or retagged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RenameReportResponse'
              examples:
                renamed:
                  summary: Pipeline renamed
                  value:
                    success: true
                    report:
                      id: 456
                      name: Customer support - production blueprint
                      tags:
                        - production
                        - support
        '400':
          description: Validation error - neither name nor tags was provided
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    RenameReportRequest:
      type: object
      title: RenameReportRequest
      description: Provide name, tags, or both. At least one field is required.
      minProperties: 1
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
          nullable: true
          description: New pipeline name.
        tags:
          type: array
          items:
            type: string
          nullable: true
          description: Replacement tags. Pass an empty array to clear all tags.
    RenameReportResponse:
      type: object
      title: RenameReportResponse
      required:
        - success
        - report
      properties:
        success:
          type: boolean
          enum:
            - true
        report:
          $ref: '#/components/schemas/EvaluationPipelineSummary'
    EvaluationPipelineSummary:
      type: object
      title: EvaluationPipelineSummary
      additionalProperties: true
      properties:
        id:
          type: integer
        name:
          type: string
        tags:
          type: array
          items:
            type: string
        score_configuration:
          anyOf:
            - $ref: '#/components/schemas/ScoreConfiguration'
            - type: 'null'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          default: false
          description: Indicates that the request failed.
        message:
          type: string
          description: Human-readable error message.
        error:
          type: string
          description: Machine-readable or fallback error message.
      additionalProperties: true
      description: >-
        Standard error response. Some legacy endpoints may return either message
        or error.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ScoreConfiguration:
      type: object
      title: ScoreConfiguration
      description: >-
        Custom scoring configuration. The code receives a data variable
        containing row dictionaries and must return an object with at least a
        score key from 0 to 100.
      required:
        - code
      properties:
        code:
          type: string
          description: Python or JavaScript code used to calculate the score.
        code_language:
          type: string
          enum:
            - PYTHON
            - JAVASCRIPT
          default: PYTHON
          description: Language used by the scoring code.
      example:
        code: >-
          score = sum(1 for row in data if row.get("Accuracy Check") is True) /
          len(data) * 100 if data else 0

          return {"score": score}
        code_language: PYTHON
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  responses:
    UnauthorizedError:
      description: Unauthorized - missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundError:
      description: Not found - requested resource does not exist or is not accessible.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ValidationError:
      description: Validation error - request parameters or body are invalid.
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/HTTPValidationError'
              - $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````