agency-time

POST /v1/agency/time/projects

Create a time-tracking project.

Tous les points de terminaison agency-time

Toute la documentation pour développeurs

Authentification

Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation agency.time.manage ; une clé qui ne l'a pas est refusée avec le code 403, et non 404.

Où insérer l'ID de votre organisation

Cet endpoint prend org_id comme champ dans le corps JSON.

L'identifiant de votre organisation se trouve sur l'écran des clés API de votre tableau de bord, à côté de la clé elle-même. Il s'agit du même identifiant pour chaque appel que vous effectuez.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

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

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

Requires agency.time.manage and the agency_project_board entitlement. currency is set on the PROJECT rather than derived from whichever rate card wins, because an invoice has exactly one currency: a project whose rates disagreed would produce a document that cannot be issued. A rate card in another currency is refused rather than converted — FX is a driver decision, not a timesheet's.

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
namestringOui
client_idstringNon
board_idstringNon
currencystringNon
org_idstringNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
idstringOui
namestringOui
client_idstringOuiThe agency's client this work is for, in the agency invoicing suite. null means internal work — reported on, never invoiced.
board_idstringOuiThe agency project board this work is run on, when there is one.
source_quote_idstringNonThe free-quote request this project was started from (docs/670 §2), or null for a project made by hand. At most one project per quote.
currencystringOuiISO 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.
archivedbooleanOui
created_atstringOui

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 422