agency-time

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

Correct a time entry.

सबै agency-time इन्डपइन्टहरू

प्रमाणीकरण

एपिआई कुञ्जीलाई बियरर टोकन (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