---
title: "PUT /api/tenants/{tenantId}/tasks/{taskId}"
method: PUT
path: "/api/tenants/{tenantId}/tasks/{taskId}"
tags: ["Tasks"]
---

# PUT /api/tenants/{tenantId}/tasks/{taskId}

`PUT /api/tenants/{tenantId}/tasks/{taskId}`

## Path parameters

- `tenantId` integer, required
- `taskId` string, required

## Request body

- Task
  - `id` integer
  - `status` 'Active' | 'Inactive' — The object status
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `nameLocalizations` object, nullable
  - `category` string, nullable
  - `instruction` string, required
  - `scheduledUserId` integer, required
  - `scheduled` string, date-time, required
  - `completedUserId` integer, nullable
  - `completed` string, date-time, nullable
  - `attributes` object, nullable

## Response `200`

OK

- Task
  - `id` integer
  - `status` 'Active' | 'Inactive' — The object status
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `nameLocalizations` object, nullable
  - `category` string, nullable
  - `instruction` string, required
  - `scheduledUserId` integer, required
  - `scheduled` string, date-time, required
  - `completedUserId` integer, nullable
  - `completed` string, date-time, nullable
  - `attributes` object, nullable

## Other responses

- `404` — Not Found
- `422` — Unprocessable Content

## Changes

- **2025-02-12** `e55062063156` — 12 warning, 46 info
  - added the new `32.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/genericParameterAttributes` response property for the response status `422`
  - added the new `32.00` enum value to the `additionalProperties/errors/items/exception/targetSite/declaringType/assembly/definedTypes/items/genericParameterAttributes` response property for the response status `422`
  - added the new `32.00` enum value to the `additionalProperties/errors/items/exception/targetSite/declaringType/customAttributes/items/constructor/module/assembly/definedTypes/items/genericParameterAttributes` response property for the response status `422`
  - added the new `32.00` enum value to the `additionalProperties/errors/items/exception/targetSite/declaringType/genericParameterAttributes` response property for the response status `422`
  - …54 more
- …earlier changes not shown

[Full history](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/changes/api/tenants/:tenantId/tasks/:taskId/put.md)

---

[API](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1.md) · [All operations](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/revisions/b58fbaf73c7d?raw)
