---
title: "PUT /operations/campaign/task/{taskId}"
method: PUT
path: "/operations/campaign/task/{taskId}"
tags: ["Operations/Campaign/Task"]
---

# PUT /operations/campaign/task/{taskId}

`PUT /operations/campaign/task/{taskId}`

## Request

- Base URL: `https://api.optimyzee.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.optimyzee.com/operations/campaign/task/{taskId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/optimyzee/apis/optimyzee-api/docs/operations/campaign/task/:taskId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `taskId` integer, required

## Request body

- object
  - `campaignId` integer, required
  - `parentId` integer, nullable
  - `title` string, required
  - `description` string, nullable
  - `status` 'DRAFT' | 'RECOMMENDATION' | 'BLOCKED' | 'PENDING' | 'PROCESSING' | 'DONE' | 'GOAL', required
  - `startedAt` string, date-time, nullable
  - `finishedAt` string, date-time, nullable
  - `order` integer, required

## Response `204`

Successful

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden
- `422`: Validation Error

---

[API](https://skmtc.dev/optimyzee/apis/optimyzee-api.md) - [All operations](https://skmtc.dev/optimyzee/apis/optimyzee-api/llms.txt) - [OpenAPI document](https://skmtc.dev/optimyzee/apis/optimyzee-api/revisions/ccaa14692e9f?raw)
