---
title: "Create a new task"
method: POST
path: "/projects/{id}/tasks"
---

# Create a new task

`POST /projects/{id}/tasks`

## Path parameters

- `id` string, required

## Request body

- union
  - object
    - `command` string, required
  - object
    - `alias` string, required

## Response `200`

Task created successfully

- TaskResult
  - `stdout` string, required — Standard output from the task execution
  - `stderr` string, required — Standard error output from the task execution
  - `exitCode` integer, required — Exit code returned by the task

## Other responses

- `400` — Invalid request
- `404` — Project not found
- `500` — Internal server error

---

[API](https://skmtc.dev/hide-org/apis/hide-api.md) · [All operations](https://skmtc.dev/hide-org/apis/hide-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hide-org/hide-api/revisions/615b2b2a65a4/schema)
