agency-time
PATCH /v1/agency/time/entries/{entryId}
Correct a time entry.
Autentificare
Trimiteți o cheie API ca token de tip bearer. Acest punct final nu specifică o permisiune anume în specificație, așa că acordați cheii cele mai puține drepturi necesare și verificați răspunsul în loc să faceți presupuneri.
Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X PATCH https://api.zinndigital.com/v1/agency/time/entries/{entryId} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
⛔ 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.
Parametri
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
entryId (path) | string | Da | — |
Corp cerere
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
task_id | string | Nu | — |
work_date | string | Nu | — |
minutes | integer | Nu | — |
description | string | Nu | — |
billable | boolean | Nu | — |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
id | string | Da | — |
user_id | string | Nu | — |
project_id | string | Da | — |
project_name | string | Nu | — |
task_id | string | Nu | — |
task_name | string | Nu | — |
client_id | string | Nu | — |
work_date | string | Da | — |
minutes | integer | Da | ⛔ 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 | Da | Presentational only — never multiplied by anything. |
description | string | Nu | — |
billable | boolean | Da | — |
billing_run_id | string | Nu | The run that invoiced this entry. `null` means it is still outstanding. |
billed_rate_minor_per_hour | integer | Nu | — |
billed_amount_minor | integer | Nu | 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 | Nu | — |
billed_under_fixed_price | boolean | Nu | 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 | Nu | 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> | Nu | Which rate card won, so a surprising invoice can be explained. |
rate_kind | string<hourly, fixed> | Nu | — |
created_at | string | Da | — |
Erori pe care le poate returna acest punct final
401 · 403 · 404 · 422