agency-time

PATCH /v1/agency/time/projects/{projectId}

Rename, re-assign or archive a project.

Todos os endpoints de agency-time

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

curl -X PATCH https://api.zinndigital.com/v1/agency/time/projects/{projectId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

⛔ Archiving hides a project from the pickers; it never deletes it. Time already logged against it stays on the timesheet and on any invoice it reached, because a project is part of how that money was arrived at. Changing `client_id` re-points FUTURE work only — an entry denormalises its client at creation, so hours already logged stay attributed to the client they were done for.

Parâmetros

NomeTipoObrigatórioO que é
projectId (path)stringSim

Corpo da requisição

NomeTipoObrigatórioO que é
namestringNão
client_idstringNão
board_idstringNão
currencystringNão
archivedbooleanNão

Resposta

NomeTipoObrigatórioO que é
idstringSim
namestringSim
client_idstringSimThe agency's client this work is for, in the agency invoicing suite. `null` means **internal** work — reported on, never invoiced.
board_idstringSimThe agency project board this work is run on, when there is one.
currencystringSimISO currency this project's work is billed in. On the project because an invoice has exactly one currency; a rate card in another currency is refused rather than converted.
archivedbooleanSim
created_atstringSim

Erros que este endpoint pode retornar

401 · 403 · 404 · 422