agency-time
POST /v1/agency/time/projects
Create a time-tracking project.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу agency.time.manage; кључ без ње се одбија уз 403, а не 404.
Где се уноси ID ваше организације
Ова крајња тачка узима org_id као поље у JSON телу.
Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/agency/time/projects \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string> }'Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
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.
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
name | string | Да | — |
client_id | string | Не | — |
board_id | string | Не | — |
currency | string | Не | — |
org_id | string | Не | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | string | Да | — |
name | string | Да | — |
client_id | string | Да | The agency's client this work is for, in the agency invoicing suite. null means internal work — reported on, never invoiced. |
board_id | string | Да | The agency project board this work is run on, when there is one. |
source_quote_id | string | Не | The 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. |
currency | string | Да | 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 | Да | — |
created_at | string | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 422