---
title: "Detach Managed Resource"
method: POST
path: "/workspaces/{workspace_id}/managed-resources/detach"
tags: ["managed-resources"]
---

# Detach Managed Resource

`POST /workspaces/{workspace_id}/managed-resources/detach`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/managed-resources/detach`
- Auth: API key in cookie `fastapiusersauth`

Copy a managed resource into an editable, customer-owned resource.

## Path parameters

- `workspace_id` string, uuid, required

## Request body

- ManagedResourceDetach: Detach a managed resource into an editable copy named ``new_name``.
  - `resource_type` 'workflow' | 'agent_preset' | 'skill' | 'table' | 'case_tag' | 'case_field' | 'case_dropdown' | 'case_duration' | 'variable' | 'secret_metadata', required: Kind of workspace resource that can be synced to and from Git. Every member is adapter-backed: it can be projected to and imported from repository files.
  - `local_id` string, uuid, required
  - `new_name` string, required

## Response `201`

Successful Response

- DetachedCopy: The copy a detach created.
  - `resource_type` 'workflow' | 'agent_preset' | 'skill' | 'table' | 'case_tag' | 'case_field' | 'case_dropdown' | 'case_duration' | 'variable' | 'secret_metadata', required: Kind of workspace resource that can be synced to and from Git. Every member is adapter-backed: it can be projected to and imported from repository files.
  - `local_id` string, uuid, required
  - `name` string, required
  - `original_local_id` string, uuid, required

## Other responses

- `422`: Validation Error

---

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