Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл 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, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі 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