Entrar

Tree (organograma completo)

GET https://{organization}.myguper.com/api/register/team/area/tree

Retorna todas as raízes e descendentes em formato aninhado, via CTE recursiva (MySQL 8). Cada nó traz seus children já populados.

Se quiser apenas o sub-tree de uma área específica, use GET /api/register/team/area/{id}/tree.

Try-it values populated from environment ACME (Demo)


Autenticação

Token

Send your user token in the x-guper-authorization header.

Cabeçalhos

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Respostas

[
    {
        "id": 1, "parentId": null, "name": "Diretoria", "description": null, "data": null, "depth": 0,
        "children": [
            { "id": 2, "parentId": 1, "name": "Marketing", "depth": 1, "children": [
                { "id": 4, "parentId": 2, "name": "SEO",         "depth": 2, "children": [] },
                { "id": 5, "parentId": 2, "name": "Performance", "depth": 2, "children": [] }
            ] },
            { "id": 3, "parentId": 1, "name": "Comercial", "depth": 1, "children": [] }
        ]
    }
]
Copied to clipboard