agency-time

POST /v1/agency/time/projects

Create a time-tracking project.

Све agency-time крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите 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.

Тело захтева

НазивТипОбавезноШта је ово
namestringДа—
client_idstringНе—
board_idstringНе—
currencystringНе—
org_idstringНе—

Одговор

НазивТипОбавезноШта је ово
idstringДа—
namestringДа—
client_idstringДаThe agency's client this work is for, in the agency invoicing suite. null means internal work — reported on, never invoiced.
board_idstringДаThe agency project board this work is run on, when there is one.
source_quote_idstringНе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.
currencystringДа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.
archivedbooleanДа—
created_atstringДа—

Грешке које ова крајња тачка може вратити

401 · 403 · 422