---
title: "Unlink workflows from template"
method: POST
path: "/v4/templates/{templateId}/unlink"
tags: ["Templates"]
---

# Unlink workflows from template

`POST /v4/templates/{templateId}/unlink`

## Request

- Base URL: `https://api.kadoa.com`
- URL: `https://api.kadoa.com/v4/templates/{templateId}/unlink`
- Auth: API key in header `x-api-key`

Remove the template association from workflows (does not change workflow config)

## Path parameters

- `templateId` string, uuid, required

## Request body

- UnlinkWorkflowsBody: Request body for unlinking workflows from a template
  - `workflowIds` string[], required: Workflow IDs to unlink from this template

## Response `200`

200

- UnlinkWorkflowsResponse: Response for unlinking workflows from a template
  - `error` false, required: Error flag (always false on success)
  - `success` true, required: Success flag
  - `unlinkedCount` number, required: Number of workflows unlinked
  - `workflowIds` string[], required: IDs of unlinked workflows

## Other responses

- `400`: 400
- `401`: 401
- `404`: 404
- `500`: 500

---

[API](https://skmtc.dev/kadoa/apis/kadoa-api.md) · [All operations](https://skmtc.dev/kadoa/apis/kadoa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kadoa/apis/kadoa-api/revisions/bf7803c927b4?raw)
