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

# Actualizar una actividad

> Requiere el scope `write`. Pasarla a COMPLETED, o cambiar su review_status, exige además ser capitán o staff del equipo.



## OpenAPI

````yaml https://notiq.online/openapi.json patch /api/v1/activities/{activityId}
openapi: 3.1.0
info:
  title: Notiq API
  version: 1.0.0
  description: >-
    API para leer y escribir en Notiq desde scripts, agentes y editores con IA.
    Se autentica con una API key (Authorization: Bearer) o con un token OAuth.
    También existe un servidor MCP en /api/mcp.
servers:
  - url: https://notiq.online
security:
  - bearerAuth: []
paths:
  /api/v1/activities/{activityId}:
    patch:
      tags:
        - Actividades
      summary: Actualizar una actividad
      description: >-
        Requiere el scope `write`. Pasarla a COMPLETED, o cambiar su
        review_status, exige además ser capitán o staff del equipo.
      parameters:
        - in: path
          name: activityId
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  minLength: 1
                  maxLength: 300
                  description: Título de la actividad
                description:
                  anyOf:
                    - type: string
                    - type: 'null'
                sprintId:
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description: Id del sprint donde vive la actividad
                status:
                  type: string
                  enum:
                    - PENDING
                    - SUGGESTED
                    - ASSIGNED
                    - IN_PROGRESS
                    - NEEDS_HELP
                    - BLOCKED
                    - REVIEW
                    - COMPLETED
                    - BACKLOG
                    - TODO
                    - IN_REVIEW
                    - DONE
                    - REOPENED
                priority:
                  anyOf:
                    - type: string
                      enum:
                        - LOW
                        - MEDIUM
                        - HIGH
                        - CRITICAL
                    - type: 'null'
                points:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 100
                    - type: 'null'
                dueDate:
                  anyOf:
                    - type: string
                      format: date
                      pattern: >-
                        ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
                    - type: 'null'
                assignedTo:
                  anyOf:
                    - type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    - type: 'null'
                reviewStatus:
                  anyOf:
                    - type: string
                      enum:
                        - PENDING
                        - APPROVED
                        - REJECTED
                        - CHANGES_REQUESTED
                    - type: 'null'
      responses:
        '200':
          description: La actividad actualizada
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: {}
        '401':
          description: Falta una credencial válida
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - type
                      - code
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                required:
                  - error
                  - request_id
                additionalProperties: false
        '403':
          description: Scope o rol insuficiente
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - type
                      - code
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                required:
                  - error
                  - request_id
                additionalProperties: false
        '429':
          description: Límite de peticiones o cuota de IA agotada
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - type
                      - code
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                required:
                  - error
                  - request_id
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key de Notiq (ntq_sk_…)

````