---
title: "POST /v2/tasks"
method: POST
path: "/v2/tasks"
---

# POST /v2/tasks

`POST /v2/tasks`

Executes the scaffolding of a component, given a template and its
parameter values.

## Request body

- ScaffolderScaffoldOptions — The input options to the `scaffold` method of the `ScaffolderClient`.
  - `templateRef` string, required
  - `values` object, required
  - `secrets` object

## Response `201`

Created

- object
  - `id` string, required

## Other responses

- `400` — Validation errors.

## Changes

- **2024-12-29** `34e9a2e690e7` — 1 breaking
  - response property `errors/items/argument` list-of-types was widened by adding types `boolean, number and string` to media type `application/json` of response `400`
- **2024-12-27** `e7ca0bc861d2` — 2 breaking, 1 info
  - removed `#/components/schemas/JsonObject, #/components/schemas/JsonArray, #/components/schemas/JsonPrimitive` from the `values/additionalProperties/` request property `oneOf` list
  - removed the required property `errors/items/schema` from the response with the `400` status
  - the response property `id` became required for the status `201`
- **2024-12-10** `77fc3b24957b` — 2 breaking, 38 warning, 3 info
  - added `#/components/schemas/Schema, subschema #1` to the `errors/items/schema` response property `oneOf` list for the response status `400`
  - the `errors/items/schema` response's property type/format changed from `object`/`` to ``/`` for status `400`
  - removed the optional property `errors/items/schema/$id` from the response with the `400` status
  - removed the optional property `errors/items/schema/$ref` from the response with the `400` status
  - …39 more
- **2024-09-04** `46d271021e8a` — 1 info
  - endpoint added
- **2024-07-09** `ec4c702e10c9` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/backstage/apis/scaffolder/changes/v2/tasks/post.md)

---

[API](https://skmtc.dev/backstage/apis/scaffolder.md) · [All operations](https://skmtc.dev/backstage/apis/scaffolder/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/backstage/scaffolder/revisions/7f53f7b1650b/schema)
