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

# Update pipeline template



## OpenAPI

````yaml /api-reference/recrutamento.yaml patch /v2/recruitment/pipeline-templates/{id}
openapi: 3.0.0
info:
  title: Tarefy API
  description: >-
    Tarefy REST API — task management, culture and performance platform.


    Endpoints are versioned at `/v2/...`. Authentication via Bearer JWT in the
    `Authorization` header.


    To get started, see the [authentication guide](/authentication) and the
    [quickstart](/quickstart).
  version: 2.0.0
  contact:
    name: Tarefy Support
    email: suporte@tarefy.com
    url: https://tarefy.com
  license:
    name: Proprietary
    url: https://tarefy.com
servers:
  - url: https://app.tarefy.com/nodeapi
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Recruitment
    description: Upload banner for the careers page (multipart/form-data)
paths:
  /v2/recruitment/pipeline-templates/{id}:
    patch:
      tags:
        - Recruitment
      summary: Update pipeline template
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PipelineTemplateCreate'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineTemplate'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PipelineTemplateCreate:
      type: object
      required:
        - name
        - stages
      properties:
        name:
          type: string
          minLength: 2
        stages:
          type: array
          minItems: 1
          items:
            type: object
            required:
              - name
              - type
            properties:
              name:
                type: string
              type:
                type: string
                enum:
                  - initial_stage
                  - final_hired
                  - final_rejected
                  - custom
              order:
                type: integer
    PipelineTemplate:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          example: Engineering Default
        is_default:
          type: boolean
          example: false
        stages:
          type: array
          items:
            $ref: '#/components/schemas/PipelineStage'
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        message:
          type: string
          example: Validation failed
        code:
          type: string
          nullable: true
          example: VALIDATION_ERROR
        errors:
          type: object
          nullable: true
          additionalProperties:
            type: string
    PipelineStage:
      type: object
      properties:
        id:
          type: string
          example: stg_xyz
        name:
          type: string
          example: Initial Screening
        order:
          type: integer
          example: 1
        type:
          type: string
          enum:
            - initial_stage
            - final_hired
            - final_rejected
            - custom
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````