---
title: "Create DIY Template"
method: POST
path: "/api/workspaces/{workspaceID}/dataflows/diy"
---

# Create DIY Template

`POST /api/workspaces/{workspaceID}/dataflows/diy`

Create a DIY template

## Path parameters

- `workspaceID` integer, required

## Request body

- object
  - `name` string, required — Name of the template being created.
  - `blockList` string[], required — Array containing the details of the blocks or processors.
  - `blockName` string, required — Name of the block in the template.
  - `blockType` string, required — Type of process executed by the block corresponds to the name parameter in the response from the GET processor API.
  - `blockOrder` string, required — Order in which the block is created. It defines the linking between the blocks.

## Response `200`

200

- object
  - `name` string
  - `uuid` string
  - `blocks` object[]
    - `blockTypeId` integer
    - `name` string
    - `type` string
    - `hide` string
    - `order` integer
    - `fields` object[]
      - `name` string
      - `displayName` string
      - `htmlType` string
      - `possibleValues` object[]
        - `label` string
        - `value` string
      - `dynamicFieldType` string
      - `value` string
    - `connections` object[]
      - `relationship` string
      - `destinationBlockName` string
      - `loadBalanceStrategy` string
    - `validationErrors` string[]
    - `validationKey` boolean
    - `dummyFieldChecked` boolean
    - `visible` boolean
    - `source` boolean
    - `fieldsNotIsAdvanced` object[]
      - `name` string
      - `displayName` string
      - `htmlType` string
      - `possibleValues` object[]
        - `label` string
        - `value` string
      - `dynamicFieldType` string
      - `value` string
  - `status` object
    - `state` string
    - `runningCount` integer
    - `stoppedCount` integer
    - `invalidCount` integer
    - `disabledCount` integer
  - `schedule` object
    - `cron` string
    - `cronFrequencyInSeconds` integer

## Other responses

- `400` — 400

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/revisions/de241f2ed9b3/schema)
