---
title: "PATCH /api/{version}/organizations/{orgId}/tasks/{id}"
method: PATCH
path: "/api/{version}/organizations/{orgId}/tasks/{id}"
tags: ["Tasks"]
---

# PATCH /api/{version}/organizations/{orgId}/tasks/{id}

`PATCH /api/{version}/organizations/{orgId}/tasks/{id}`

## Path parameters

- `id` string, required
- `orgId` string, required
- `version` string, required

## Request body

- UpdateTaskRequest
  - `status` 'Created' | 'InProgress' | 'Canceled' | 'Error' | 'Completed'
  - `errorMessage` string, nullable

## Response `200`

OK

- TaskDtoItemResponse
  - `item` TaskDto
    - `id` string, nullable
    - `projectId` string, nullable
    - `type` 'DatabaseReadSchema' | 'ExtratData' | 'ImportData' | 'RecognizeSensitiveFields' | 'UpgradeAgent'
    - `ownerId` string, nullable
    - `taskTarget` object, nullable
    - `createdDate` string, date-time
    - `lastUpdatedDate` string, date-time
    - `processingStartDate` string, date-time, nullable
    - `status` 'Created' | 'InProgress' | 'Canceled' | 'Error' | 'Completed'
    - `errorMessage` string, nullable
    - `duration` integer, nullable
  - `links` HateoasLink[], nullable
    - `relation` string, nullable
    - `uri` string, nullable
    - `method` string, nullable

## Other responses

- `400` — Validation failed

---

[API](https://skmtc.net/data-grapes/apis/grapes-api.md) · [All operations](https://skmtc.net/data-grapes/apis/grapes-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/data-grapes/grapes-api/revisions/8ff77fe45bba/schema)
