---
title: "Replace task"
method: PUT
path: "/v1/Tasks/{id}"
tags: ["Tasks"]
---

# Replace task

`PUT /v1/Tasks/{id}`

Replace an existing task.

## Path parameters

- `id` integer, required

## Request body

- RevAppUpdateModelsTask
  - `task_id` integer — Primary identifier for this task.
  - `subject` string — Brief explanation of what is to be done.
  - `message` string — Detailed explanation of what is to be done.
  - `assigned_to` integer — Foreign identifier indicating a user to which this task is assigned.
  - `group_assigned_to` integer — Foreign identifier indicating a group of users to which this task is assigned.
  - `task_step_id` integer — Foreign identifier indicating association with a task step.
  - `task_type_id` integer — Foreign identifier indicating association with a task type.
  - `due_date` string, date-time — Date and time this task is due.
  - `due_date_type` 'SINGLE' | 'RECURRING_DAY' | 'RECURRING_DATE' | 'RECURRING_DAYOFWEEK' | 'RECURRING_DAILY' | 'RECURRING_HOURLY' — The type of due date. RECURRING_HOURLY - Hourly, RECURRING_DAILY - Daily, RECURRING_DAYOFWEEK - Weekly, RECURRING_DATE - Yearly, RECURRING_DAY - Monthly
  - `remindme_increment` integer — The interval in which reminder is set to be sent.
  - `remindme_unit` 'Min' | 'Hr' — The measure or unit in which the reminder is set to be sent.
  - `fields` RevAppModelsFieldValue[]
    - `field_id` integer — Primary identifier for this custom field.
    - `label` string — User-defined identifier representing the custom field.
    - `value` string — Value of the custom field.
    - `links` RevAppComponentsLink[]
      - `rel` string
      - `href` string
  - `links` RevAppComponentsLink[]
    - `rel` string
    - `href` string

## Response `200`

OK

- RevWebAPIModelsSuccess
  - `ok` boolean

## Other responses

- `400` — BadRequest
- `500` — InternalServerError

---

[API](https://skmtc.net/rev-io/apis/rev-io-api.md) · [All operations](https://skmtc.net/rev-io/apis/rev-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rev-io/rev-io-api/revisions/135571434f6c/schema)
