Pular para o conteúdo principal

Projetos

Gerencie projetos vinculados a sua empresa.

Listar Projetos

GET /external/v1/projects

Retorna uma lista paginada de projetos.

Query Parameters:

ParametroTipoObrigatorioDescricao
pagenumberNaoPagina atual (default: 1)
limitnumberNaoItens por pagina (default: 20, max: 100)
searchstringNaoBusca por titulo
responsibleIdstringNaoFiltro por responsavel (companyUserId)
businessUnitIdstringNaoFiltro por unidade de negocio
statusstringNaoFiltro: PLANNING, IN_PROGRESS, ON_HOLD, COMPLETED, CANCELLED
orderBystringNaoCampo: title, startDate, createdAt (default: createdAt)
orderstringNaoASC ou DESC (default: DESC)

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/projects?status=IN_PROGRESS&limit=10" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"data": [
{
"id": "clxa0j1k2l3m4n5o6p7q8r9s0",
"code": "PRP-1015",
"title": "Implantacao Tesselys - Fase 2",
"description": "Segunda fase da implantacao com modulos financeiro e estoque.",
"responsibleId": "clxuser001",
"responsibleName": "Carlos Silva",
"businessUnitId": "clxbu001",
"businessUnitName": "Tecnologia",
"status": "IN_PROGRESS",
"startDate": "2026-02-01T00:00:00.000Z",
"expectedEndDate": "2026-06-30T00:00:00.000Z",
"endDate": null,
"progress": 35,
"isActive": true,
"createdAt": "2026-01-28T14:00:00.000Z",
"updatedAt": "2026-03-20T09:30:00.000Z"
}
],
"meta": {
"total": 12,
"page": 1,
"limit": 10,
"totalPages": 2
}
}

Buscar Projeto por ID

GET /external/v1/projects/:id

Exemplo de requisicao:

curl -X GET "https://api.tesselys.com.br/external/v1/projects/clxa0j1k2l3m4n5o6p7q8r9s0" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}"

Resposta (200):

{
"id": "clxa0j1k2l3m4n5o6p7q8r9s0",
"code": "PRP-1015",
"title": "Implantacao Tesselys - Fase 2",
"description": "Segunda fase da implantacao com modulos financeiro e estoque. Inclui migracoes de dados e treinamentos.",
"responsibleId": "clxuser001",
"responsibleName": "Carlos Silva",
"businessUnitId": "clxbu001",
"businessUnitName": "Tecnologia",
"status": "IN_PROGRESS",
"startDate": "2026-02-01T00:00:00.000Z",
"expectedEndDate": "2026-06-30T00:00:00.000Z",
"endDate": null,
"progress": 35,
"budget": 120000.00,
"isActive": true,
"createdAt": "2026-01-28T14:00:00.000Z",
"updatedAt": "2026-03-20T09:30:00.000Z"
}

Criar Projeto

POST /external/v1/projects

Body:

CampoTipoObrigatorioDescricao
titlestringSimTitulo do projeto (max: 255)
responsibleIdstringSimID do responsavel (companyUserId)
businessUnitIdstringNaoID da unidade de negocio
descriptionstringNaoDescricao detalhada
startDatestringNaoData de inicio (ISO 8601: YYYY-MM-DD)
expectedEndDatestringNaoData prevista de conclusao (ISO 8601: YYYY-MM-DD)
budgetnumberNaoOrcamento previsto

Exemplo de requisicao:

curl -X POST "https://api.tesselys.com.br/external/v1/projects" \
-H "Authorization: Bearer {accessToken}" \
-H "x-company-token: {companyToken}" \
-H "Content-Type: application/json" \
-d '{
"title": "Migracao de Infraestrutura Cloud",
"responsibleId": "clxuser002",
"businessUnitId": "clxbu001",
"description": "Migracao completa da infraestrutura on-premise para AWS. Inclui banco de dados, aplicacoes e armazenamento.",
"startDate": "2026-04-01",
"expectedEndDate": "2026-09-30",
"budget": 250000.00
}'

Resposta (201):

{
"id": "clxb1k2l3m4n5o6p7q8r9s0t1",
"code": "PRP-1016",
"title": "Migracao de Infraestrutura Cloud",
"description": "Migracao completa da infraestrutura on-premise para AWS. Inclui banco de dados, aplicacoes e armazenamento.",
"responsibleId": "clxuser002",
"responsibleName": "Ana Rodrigues",
"businessUnitId": "clxbu001",
"businessUnitName": "Tecnologia",
"status": "PLANNING",
"startDate": "2026-04-01T00:00:00.000Z",
"expectedEndDate": "2026-09-30T00:00:00.000Z",
"endDate": null,
"progress": 0,
"budget": 250000.00,
"isActive": true,
"createdAt": "2026-03-25T12:00:00.000Z",
"updatedAt": "2026-03-25T12:00:00.000Z"
}
Nota

Projetos sao criados automaticamente com status PLANNING. O campo code e gerado automaticamente pelo sistema.

Valores de Enum

status (somente leitura)

ValorDescricao
PLANNINGEm planejamento
IN_PROGRESSEm andamento
ON_HOLDPausado
COMPLETEDConcluido
CANCELLEDCancelado