agency-time

PATCH /v1/agency/time/entries/{entryId}

Correct a time entry.

Барлық agency-time соңғы нүктелері

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

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_idstringЖоқ
work_datestringЖоқ
minutesintegerЖоқ
descriptionstringЖоқ
billablebooleanЖоқ

Жауап

АтыTүріМіндеттіМазмұны
idstringИә
user_idstringЖоқ
project_idstringИә
project_namestringЖоқ
task_idstringЖоқ
task_namestringЖоқ
client_idstringЖоқ
work_datestringИә
minutesintegerИә⛔ 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_labelstringИәPresentational only — never multiplied by anything.
descriptionstringЖоқ
billablebooleanИә
billing_run_idstringЖоқThe run that invoiced this entry. `null` means it is still outstanding.
billed_rate_minor_per_hourintegerЖоқ
billed_amount_minorintegerЖоқ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_currencystringЖоқ
billed_under_fixed_pricebooleanЖоқ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_hourintegerЖоқ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_scopestring<task, project, client, org>ЖоқWhich rate card won, so a surprising invoice can be explained.
rate_kindstring<hourly, fixed>Жоқ
created_atstringИә

Бұл соңғы нүкте қайтара алатын қателер

401 · 403 · 404 · 422