---
title: "Desvincular um projeto filho"
method: DELETE
path: "/api/management/projects/{project}/hierarchy/detach-child/{child}"
tags: ["projects", "Hierarquia"]
---

# Desvincular um projeto filho

`DELETE /api/management/projects/{project}/hierarchy/detach-child/{child}`

Desfaz o vínculo entre um projeto pai e um de seus filhos diretos. O projeto desvinculado passa a ser raiz e mantém a própria descendência intacta. Se o projeto informado não for filho direto daquele pai, a operação é recusada.

## Response `200`

Sucesso

- object — Confirmação da desvinculação.
  - `response` boolean, required — Sempre true quando a operação é concluída.
  - `data` object, required — Vínculo desfeito.
    - `former_parent` object — Identificação resumida de um projeto.
      - `id` string, uuid — ID (UUID) do projeto.
      - `name` string — Nome do projeto.
    - `detached_child` object — Projeto desvinculado.
      - `id` string, uuid — ID (UUID) do projeto desvinculado.
      - `name` string — Nome do projeto.
      - `is_root` boolean — Sempre true: o projeto passou a ser raiz.

## Other responses

- `422` — Projeto não é filho deste pai

## Changes

- **2026-08-24** `3c590152d5b5` — 5 info
  - the response property `data` became required for the status `200`
  - the response property `error` became required for the status `422`
  - the response property `message` became required for the status `422`
  - the response property `response` became required for the status `200`
  - …1 more
- **2026-08-19** `3d619d9db20d` — 3 info
  - api tag `Hierarquia` added
  - api tag `hierarchy` removed
  - api tag `{id}` removed
- **2026-08-19** `5501d8ecc8a0` — 2 info
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `422`

[Change history](https://skmtc.dev/olie-ai/apis/olie-api/changes/api/management/projects/:project/hierarchy/detach-child/:child/delete.md)

---

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