---
title: "Unlinks a workflow from a project template."
method: POST
path: "/projecttemplates/{projectTemplateId}/unlinkworkflow"
tags: ["workflows"]
---

# Unlinks a workflow from a project template.

`POST /projecttemplates/{projectTemplateId}/unlinkworkflow`

Unlinks the workflow from the project template, cloning workflow statuses
            to local template-specific statuses. Custom fields and automations
            remain but become editable (no longer synced with workflow).

<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

## Path parameters

- `projectTemplateId` string, uuid, required

## Headers

- `Authorization` string, required

## Response `200`

OK

- ProjectTemplate — The project type model.
  - `id` string, uuid — The id of the template.
  - `name` string, nullable — The name of the template.
  - `description` string, nullable — The description that will be used for the project created from this template. It will be appended to the project description provided by the user.
  - `createdOn` string, date-time — The date this entity was created.
  - `createdBy` string, uuid — The id of the user who created this entity.
  - `updatedOn` string, date-time — The date this entity was last modified.
  - `updatedBy` string, uuid — The id of the user who last modified this entity.
  - `isBillableByDefault` string, nullable — Whether project times should be billable by default, if the project was created by this template. Can be 'on', 'off', or 'auto'.
  - `defaultTaskListIdForEmails` string, uuid, nullable — The id references the task list, which is used to assign tasks created by email to.
  - `projectStatuses` ProjectStatus[], nullable — Deprecated. Use `GET /projectTemplates/{projectTemplateId}/projectStatuses` instead. The list of project statuses associated with the template. This can be either workflow statuses or template-specific statuses depending on whether the template is linked to a workflow or not.
    - `id` string, uuid — The primary identifier of this project status.
    - `name` string, nullable — The name of the project status.
    - `type` string, nullable — The general type of this project status.
    - `order` integer, nullable — The order of this status.
    - `createdOn` string, date-time — The date this entity was created.
    - `createdBy` string, uuid — The id of the user who created this entity.
    - `updatedOn` string, date-time — The date this entity was last modified.
    - `projectTemplateId` string, uuid, nullable — The id of the project template of the status.
    - `projectId` string, uuid, nullable — The id of the project the status belongs to.
    - `workflowId` string, uuid, nullable — The id of the workflow linked to this project status.
    - `updatedBy` string, uuid — The id of the user who last modified this entity.
    - `isExternal` boolean — True if the project status is coming from an external workspace (awork Connect).
  - `hasImage` boolean — Whether the project template has an image in the files service.
  - `copyImageToProjectOnCreation` boolean — Whether the template image should be copied to the project during project creation. If the template has no image, no image is copied. No image is copied from the client.
  - `projectTypeId` string, uuid, nullable — The id of the project type.
  - `workflowId` string, uuid, nullable — The id of the workflow linked to this template.
  - `timeBudget` integer — The amount of time budgeted for the project in seconds.
  - `hasRelativeTasks` boolean — True if any of the tasks of the template has relative dates.

## Other responses

- `400` — Bad Request
- `404` — Not Found

---

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