agency-time

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

Correct a time entry.

تمام agency-time اینڈ پوائنٹس

توثيقِ شناخت

ایک API کلید بطور بیر ٹوکن (bearer token) ارسال کریں۔ یہ اینڈ پوائنٹ اسپیسیفیکیشن میں کسی مخصوص اجازت کا ذکر نہیں کرتا، اس لیے فرض کرنے کے بجائے اپنی کلید کو کم از کم درکار اجازت دیں اور رسپانس چیک کریں۔

یہ اینڈ پوائنٹ کوئی آرگنائزیشن آئی ڈی نہیں لیتا۔ آپ کی کلید پہلے ہی اس آرگنائزیشن کی شناخت کرتی ہے جس سے یہ تعلق رکھتی ہے، اور اس کا جواب اسی کے مطابق محدود ہوتا ہے۔

آزمائیں

کوئی بھی چیز جو زاویہ دار قوسین میں ہو اسے اپنی اقدار سے بدلیں، اور کلیدی پلیس ہولڈر کو اپنے ڈیش بورڈ کی کسی کلید سے بدلیں۔

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.

پیرامیٹرز

نامقسملازمییہ کیا ہے
entryId (path)stringہاں

درخواست کا باڈی

نامقسملازمییہ کیا ہے
task_idstringنہیں
work_datestringنہیں
minutesintegerنہیں
descriptionstringنہیں
billablebooleanنہیں

جواب

نامقسملازمییہ کیا ہے
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