---
title: "Creates task schedules from a task by id."
method: POST
path: "/taskschedules/bytaskid/{taskId}"
tags: ["taskSchedules"]
---

# Creates task schedules from a task by id.

`POST /taskschedules/bytaskid/{taskId}`

Creates task schedules from a task by id. The task must have start and due date and at least one assignee.
            If more than one user is assigned to the task, then the user needs to opt in to create task schedules for all assignees
            by setting the
            'createSchedulesForAllAssignees' query param to true. This requires admin or feature permissions.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `taskId` string, uuid, required

## Query parameters

- `createSchedulesForAllAssignees` boolean

## Headers

- `Authorization` string, required

## Response `204`

No Content

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
