agency-time

POST /v1/agency/time/projects

Create a time-tracking project.

Всички крайни точки в agency-time

Упълномощаване

Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението agency.time.manage; ключ без него се отхвърля с 403, а не с 404.

Където отива идентификаторът на вашата организация

Този краен пункт приема 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 конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в 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.
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Да

Грешки, които този крайpoint може да върне

401 · 403 · 422