agency-time
POST /v1/agency/time/projects
Create a time-tracking project.
Autentifikacija
Pošaljite API ključ kao bearer token. Ključ mora imati dozvolu agency.time.manage; ključ bez nje se odbija sa 403, a ne sa 404.
Gde ide ID vaše organizacije
Ova krajnja tačka prihvata org_id kao polje u JSON telu.
ID vaše organizacije nalazi se na ekranu sa API ključevima u vašoj kontrolnoj tabli, pored samog ključa. To je isti ID u svakom pozivu koji uputite.
Isprobajte
Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.
curl -X POST https://api.zinndigital.com/v1/agency/time/projects \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string> }'Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli
Detalji
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.
Telo zahteva
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
name | string | Da | — |
client_id | string | Ne | — |
board_id | string | Ne | — |
currency | string | Ne | — |
org_id | string | Ne | — |
Odgovor
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
id | string | Da | — |
name | string | Da | — |
client_id | string | Da | The agency's client this work is for, in the agency invoicing suite. `null` means **internal** work — reported on, never invoiced. |
board_id | string | Da | The agency project board this work is run on, when there is one. |
currency | string | Da | ISO 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. |
archived | boolean | Da | — |
created_at | string | Da | — |
Greške koje ovaj krajnji tačka može da vrati
401 · 403 · 422