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

# Update a task



## OpenAPI

````yaml /api-reference/openapi.json patch /tasks/{taskId}
openapi: 3.1.0
info:
  title: Replo Public API
  version: '2026-06-27'
servers:
  - url: https://public-api.replo.app/api/v1/public
security: []
paths:
  /tasks/{taskId}:
    patch:
      tags:
        - Tasks
      summary: Update a task
      operationId: tasks.update
      parameters:
        - name: Replo-Api-Version
          in: header
          required: true
          schema:
            type: string
            enum:
              - '2026-06-27'
          description: The public API version to use for this request.
        - schema:
            type: string
            format: uuid
          required: true
          name: taskId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  minLength: 1
                  maxLength: 255
                emoji:
                  type: string
                  minLength: 1
                  maxLength: 8
                prompt:
                  type: string
                  minLength: 1
                rrule:
                  type: string
                  minLength: 1
              required:
                - title
                - prompt
                - rrule
              additionalProperties: false
      responses:
        '200':
          description: Update a task
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '401':
          description: Missing or invalid Replo Public API token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '403':
          description: You are not authorized to access this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '500':
          description: An internal error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '503':
          description: Service temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
      security:
        - bearerAuth: []
components:
  schemas:
    Task:
      type: object
      properties:
        object:
          type: string
          enum:
            - task
        id:
          type: string
          format: uuid
        title:
          type: string
        emoji:
          type: string
        rrule:
          type: string
        nextRunAt:
          type:
            - string
            - 'null'
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - object
        - id
        - title
        - emoji
        - rrule
        - nextRunAt
        - createdAt
        - updatedAt
    PublicApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            doc_url:
              type: string
          required:
            - code
            - message
            - doc_url
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````