---
title: "Submit a task"
method: POST
path: "/task/{uid}"
tags: ["Tasks"]
---

# Submit a task

`POST /task/{uid}`

Used to approve or deny a pending task.

## Path parameters

- `uid` string, required — Task uid

## Request body

- SubmitTaskBody — Submit task body schema.
  - `data` object, required — A JSON object containing the form data to be submitted for the task. The structure of the JSON object depends on the task type and can be found in the task properties.

## Response `200`

Status of submitted task

- SubmitTaskResponse — Submit task response schema.
  - `error` string, nullable — Error message if the task was not successfully submitted.
  - `success` boolean, required — Indicates if the task was successfully submitted or not.

## Other responses

- `422` — Validation Error

---

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