---
title: "Update a task"
method: PATCH
path: "/tasks/{id}"
tags: ["tasks"]
---

# Update a task

`PATCH /tasks/{id}`

Updates an existing task. Only provided fields are modified.

**Rate limit:** 60 requests per minute

## Path parameters

- `id` string, required

## Request body

- UpdateTaskRequestBody
  - `assignee_id` string — Assignee ID for this task
  - `body_html` string — Body HTML for this task
  - `custom_fields` CustomFieldValue[] — An array of custom fields to be used on this task. Only passed in fields will be modified.
    - `slug` string — The slug of the custom field.
    - `value` string — The value of the custom field. Only to be used for single-valued custom fields. If unset, the custom field will be unset. If the custom field is a select field, the value must be the select option slug, which you can find from the GET /custom-fields endpoint. If the custom field is a relationship field, the value must be the related object ID.
    - `values` string[] — The values of the custom field. Only to be used for multi-valued custom fields (ex. multiselect). If unset, the custom field will be unset. If the custom field is a multiselect field, the values must be the select option slugs which you can find from the GET /custom-fields endpoint.
  - `customer_portal_visible` boolean — Customer portal visible for this task
  - `due_date` string — Due date for this task, in RFC 3339 format
  - `milestone_id` string — Milestone ID for this task
  - `project_id` string — Project ID for this task
  - `status` string
  - `title` string — Title for this task

## Response `200`

- UpdateTaskResponseBody
  - `data` Task
    - `account` MiniAccount
      - `external_ids` ExternalID[] — External IDs associated with the account.
        - `external_id` string — The external ID. Must be unique per object type (ex. account).
        - `label` string — The label of the external ID. Must be unique per object.
      - `id` string — The ID of the account.
    - `assignee` Actor
      - `contact` MiniContact
        - `email` string — The email of the contact.
        - `id` string — The ID of the contact.
      - `user` MiniUser
        - `email` string — The email of the user.
        - `id` string — The ID of the user.
    - `body_html` string — The body of the task in HTML format.
    - `created_at` string — The created at time of the task.
    - `custom_fields` object — Custom field values associated with the task, keyed by custom field slug.
    - `customer_portal_visible` boolean — The customer portal visible of the task.
    - `due_date` string — The due date of the task in RFC3339 format.
    - `external_issues` ExternalIssue[] — The external product issues associated with the task, if any.
      - `external_id` string — The external ID of the external issue. Jira: ID of the issue (autoincrementing number from 10000). GitHub: Owner/Repo/IssueID. Linear: ID of the issue (UUID). Asana: ID of the task (Long number).
      - `link` string — Link to the product issue.
      - `source` string — The source of the external issue.
    - `id` string — The ID of the task.
    - `milestone` MiniMilestone
      - `id` string — The ID of the milestone.
    - `parent_task_id` string — The ID of the parent task, if this is a subtask.
    - `project` MiniProject
      - `id` string — The ID of the project.
    - `status` string
    - `subtask_ids` string[] — The IDs of subtasks belonging to this task.
    - `title` string — The title of the task.
    - `updated_at` string — The updated at time of the task.
  - `request_id` string — The request ID for tracking.

## Other responses

- `400` — The request was invalid or could not be completed.
- `404`

---

[API](https://skmtc.net/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.net/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usepylon/pylon-api/versions/999c51740b4e/schema)
