agency-time
PATCH /v1/agency/time/entries/{entryId}
Correct a time entry.
Аутентификация
API кілтін bearer токені ретінде жіберіңіз. Бұл соңғы нүкте сипаттамада арнайы рұқсатты көрсетпейді, сондықтан болжағаннан гөрі кілтіңізге қажетті ең аз рұқсатты беріп, жауапты тексеріңіз.
Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.
Әрекет етіп көру
Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.
curl -X PATCH https://api.zinndigital.com/v1/agency/time/entries/{entryId} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз
Мәліметтер
⛔ An entry that has been invoiced cannot be changed — 422. Changing the minutes on an invoiced line would make the timesheet disagree with a document the client is holding; the remedy is to void the draft invoice, which releases the time back into the pool.
Параметрлер
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
entryId (path) | string | Иә | — |
Сұрау денесі
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
task_id | string | Жоқ | — |
work_date | string | Жоқ | — |
minutes | integer | Жоқ | — |
description | string | Жоқ | — |
billable | boolean | Жоқ | — |
Жауап
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
id | string | Иә | — |
user_id | string | Жоқ | — |
project_id | string | Иә | — |
project_name | string | Жоқ | — |
task_id | string | Жоқ | — |
task_name | string | Жоқ | — |
client_id | string | Жоқ | — |
work_date | string | Иә | — |
minutes | integer | Иә | ⛔ An INTEGER of minutes. There is no `hours` field on this API: an hours-as-float duration re-enters the money through the rate and no rounding point can recover it. |
duration_label | string | Иә | Presentational only — never multiplied by anything. |
description | string | Жоқ | — |
billable | boolean | Иә | — |
billing_run_id | string | Жоқ | The run that invoiced this entry. `null` means it is still outstanding. |
billed_rate_minor_per_hour | integer | Жоқ | — |
billed_amount_minor | integer | Жоқ | What was actually charged, frozen at billing time so the document can be re-derived years later even if every rate card has since changed. |
billed_currency | string | Жоқ | — |
billed_under_fixed_price | boolean | Жоқ | TRUE when these minutes were rolled into a task's FIXED price rather than charged by the hour. `billed_amount_minor` is then 0 and that zero is correct — read this flag, not the… |
rate_minor_per_hour | integer | Жоқ | The rate that WOULD apply, resolved against this entry's own `work_date`, for an entry not yet billed. ⛔ `null` means **unpriced**, not free: work with no rate card is never inv… |
rate_scope | string<task, project, client, org> | Жоқ | Which rate card won, so a surprising invoice can be explained. |
rate_kind | string<hourly, fixed> | Жоқ | — |
created_at | string | Иә | — |
Бұл соңғы нүкте қайтара алатын қателер
401 · 403 · 404 · 422