---
title: "Unlinks a custom field definition from a workflow."
method: POST
path: "/workflows/{workflowId}/unlinkcustomfielddefinition"
tags: ["customFields"]
---

# Unlinks a custom field definition from a workflow.

`POST /workflows/{workflowId}/unlinkcustomfielddefinition`

<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

## Path parameters

- `workflowId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- UnlinkWorkflowCustomFieldDefinitionForm — Represents a form for unlinking a custom field definition from a workflow.
  - `customFieldDefinitionId` string, uuid, required — The id of the custom field definition.
  - `unlinkCustomFieldFromLinkedProjects` boolean — Gets or sets a value indicating whether the custom field should also be unlinked from workflow-linked projects, including deleting task custom field values.

## Response `204`

No Content

- object

## 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)
