---
title: "POST /operations/campaign/task"
method: POST
path: "/operations/campaign/task"
tags: ["Operations/Campaign/Task"]
---

# POST /operations/campaign/task

`POST /operations/campaign/task`

## 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`
- Auth: none declared
- TypeScript: <https://skmtc.dev/optimyzee/apis/optimyzee-api/docs/operations/campaign/task/post.ts> (a function with typed inputs; its response is checked against the schema)

## 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 `201`

Successful

- IdSchema
  - `id` integer, required

## 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)
