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

# Edit Task

> Update a task. Requires Manage Tasks for a task, or Manage Work Orders for a work order - the permission is matched to the kind of record.



## OpenAPI

````yaml POST /api/v1/ops/workspaces/{workspaceId}/tasks/{taskId}/edit
openapi: 3.1.0
info:
  title: Xenia Team API - Edit Task
  version: 1.0.0
  description: >-
    Updates an existing task. Send only the fields you want to change; the body
    accepts the same fields as create.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/ops/workspaces/{workspaceId}/tasks/{taskId}/edit:
    post:
      tags:
        - Tasks
      summary: Edit Task
      description: >-
        Update a task. Requires Manage Tasks for a task, or Manage Work Orders
        for a work order - the permission is matched to the kind of record.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: UUID of the workspace. Must be your key's own workspace.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
        - name: taskId
          in: path
          required: true
          description: UUID of the task.
          schema:
            type: string
            format: uuid
            example: 232154c0-c239-48f8-b670-0e5d12fd64d0
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Any subset of the create fields.
              properties:
                title:
                  type: string
                description:
                  type: string
                priority:
                  type: string
                dueTime:
                  type: string
                assignees:
                  type: array
                  items:
                    type: string
                    format: uuid
            example:
              priority: Low
              dueTime: '2026-08-06T17:00:00-04:00'
      responses:
        '200':
          description: Task updated.
        '400':
          description: Bad request - missing or invalid fields.
        '401':
          description: >-
            Unauthorized - invalid client credentials, or the key does not
            belong to this workspace.
        '403':
          description: >-
            Forbidden - API key not authorized for this route, or the key's user
            lacks the required permission.
        '404':
          description: Task not found.
        '500':
          description: Internal server error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````