---
title: "Create compliance task"
method: POST
path: "/v1/tasks"
tags: ["Tasks"]
---

# Create compliance task

`POST /v1/tasks`

Create a compliance task for evidence collection, remediation, review, or recurring control work inside an organization.

## Request body

- object
  - `title` string, required
  - `description` string, required
  - `assigneeId` string, nullable
  - `frequency` 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'yearly', nullable
  - `department` 'none' | 'admin' | 'gov' | 'hr' | 'it' | 'itsm' | 'qms', nullable
  - `controlIds` string[]
  - `taskTemplateId` string, nullable
  - `vendorId` string, nullable — Vendor ID to connect this task to

## Response `201`

Task created successfully

- TaskResponseDto
  - `id` string, required — Unique identifier for the task
  - `title` string, required — Task title
  - `description` string — Task description
  - `status` 'todo' | 'in_progress' | 'done' | 'blocked', required — Task status
  - `createdAt` string, date-time, required — Task creation timestamp
  - `updatedAt` string, date-time, required — Task last update timestamp
  - `taskTemplateId` object, nullable — Task template ID
  - `integrationScheduleFrequency` 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'yearly', required — Cadence for running the integration check attached to this task
  - `integrationLastRunAt` object, nullable — Last successful integration check run timestamp

## Other responses

- `400` — Invalid request body

---

[API](https://skmtc.net/om-network/apis/betayum-api.md) · [All operations](https://skmtc.net/om-network/apis/betayum-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/om-network/betayum-api/revisions/95679a9aa625/schema)
