---
title: "Promover um projeto a raiz"
method: PUT
path: "/api/management/projects/{project}/hierarchy/promote-to-root"
tags: ["projects", "Hierarquia"]
---

# Promover um projeto a raiz

`PUT /api/management/projects/{project}/hierarchy/promote-to-root`

Desliga o projeto de seu pai, deixando-o como raiz de uma nova estrutura. Os filhos do projeto acompanham a mudança e mantêm as posições relativas entre si. Projetos que já são raiz respondem com erro.

## Response `200`

Sucesso

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

## Other responses

- `422` — Projeto já é raiz

## Changes

- **2026-08-24** `3c590152d5b5` — 4 info
  - the response property `data` became required for the status `200`
  - the response property `message` became required for the status `422`
  - the response property `response` became required for the status `200`
  - the response property `response` became required for the status `422`
- **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/promote-to-root/put.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/b43a04f35145?raw)
