नेविगेशन पर जाएँ

सेवा अपडेट करें

मौजूदा सेवा अपडेट करें। सिर्फ़ भेजे गए फ़ील्ड बदले जाते हैं।

पाथ पैरामीटर

service_idstringआवश्यक

सेवा की ID। इसे बनाने पर लौटाई जाती है; इन्हें GET /v1/reception/services से सूचीबद्ध करें।

हेडर

xi-api-keystringवैकल्पिक
xi-workspace-idstringआवश्यक

वह ग्राहक workspace जिस पर रीसेलर की API key काम करती है।

अनुरोध

This endpoint expects an object.
pricing_modeenumवैकल्पिकडिफ़ॉल्ट: fixed

‘fixed’ (default): the item has a known price the agent can quote, and customers can book or order it directly. ‘quote’: the price depends on the job (renovation, catering, custom work), so no price or slot is offered; the agent collects the intake_questions and files a quote request instead. Takes effect only while quotes are enabled for the business. Group services cannot use ‘quote’.

अनुमत मान:
intake_questionslist of objectsवैकल्पिक

इस आइटम को बुक या ऑर्डर करने से पहले एजेंट जो सवाल पूछता है। उपयोगी pricing_mode='quote' आइटम के लिए ये ज़रूरी हैं — इनके बिना कोट अनुरोध में कीमत तय करने के लिए कुछ नहीं होगा — लेकिन अतिरिक्त जानकारी वाले तय-कीमत के आइटम पर भी मान्य हैं (जैसे हेयर डाई से पहले बालों का मौजूदा रंग या उपचार से पहले एलर्जी)।

groupslist of objectsवैकल्पिक

इस आइटम की group memberships। हर entry में group label और उस group के भीतर आइटम की 0-आधारित rank होती है।

ungrouped_rankinteger or nullवैकल्पिक

बिना समूह वाले आइटम के बीच डिस्प्ले स्थान; null सबसे अंत में क्रमबद्ध होता है। इसे reorder endpoint से बदलें।

namestringवैकल्पिक

ग्राहकों और रिसेप्शनिस्ट को दिखाया जाने वाला सेवा नाम।

descriptionstringवैकल्पिक

Details about the service for customers and the receptionist; empty string means none.

variantslist of objectsवैकल्पिक

Bookable options for this service. Always non-empty; variants[0] is the default option shown when callers don’t pick a specific variant. Each entry has its own duration and (optional) price, and uniqueness is keyed by duration.

kindenumवैकल्पिकडिफ़ॉल्ट: classic

Classic = staff-delivered; rental = asset-based; group = multi-participant session.

अनुमत मान:
buffer_minutesintegerवैकल्पिक

हर बुकिंग के बाद आरक्षित turnover/cleanup समय। यह सभी सेवा प्रकारों पर लागू होता है; डिफ़ॉल्ट 0 का मतलब है कोई buffer नहीं।

service_locationenumवैकल्पिकडिफ़ॉल्ट: business

सेवा कहाँ दी जाती है। business = क्लाइंट बिज़नेस लोकेशन पर आता है (डिफ़ॉल्ट); customer = स्टाफ क्लाइंट के पास जाता है। केवल kind='classic' के लिए लागू।

अनुमत मान:
add_onslist of objectsवैकल्पिक

वैकल्पिक अतिरिक्त चीज़ें जिन्हें इस सेवा की बुकिंग में जोड़ा जा सकता है।

max_participantsinteger or nullवैकल्पिक2-200

Capacity for kind='group': how many seats a single session can sell across all registrations. Must be null for classic and rental services (those are always exclusive to one client per booking).

capacityinteger or nullवैकल्पिक

बुकिंग सीमित करने के लिए इस्तेमाल नहीं होता; इसके बजाय ग्रुप सेवाओं में max_participants सेट करें।

is_activebooleanवैकल्पिक

क्या सेवा उपलब्ध है; निष्क्रिय सेवाएँ बुक नहीं की जा सकतीं।

any_staff_memberbooleanवैकल्पिक

क्या कोई भी स्टाफ सदस्य सेवा दे सकता है। false होने पर, केवल staff_ids में शामिल स्टाफ ही सेवा दे सकता है। रेंटल के लिए इसे अनदेखा किया जाता है।

staff_idslist of stringsवैकल्पिक

इस सेवा के लिए असाइन किया गया स्टाफ; kind=‘rental’ के लिए खाली होना चाहिए।

asset_idslist of stringsवैकल्पिक
Assets, such as rooms or equipment, this service can be booked on.
advance_booking_minutesintegerवैकल्पिक

ग्राहक-सामने वाले चैनल (public booking page, voice agent) इस सेवा को भविष्य में कितनी दूर तक बुक कर सकते हैं। हर प्रकार पर लागू होता है।

location_idslist of stringsवैकल्पिक

वे स्थान जहां यह सेवा दी जाती है; खाली सूची का मतलब सभी स्थान हैं।

display_on_booking_pagebooleanवैकल्पिक

क्या सेवा पब्लिक बुकिंग पेज पर सूचीबद्ध है।

travel_minutesintegerवैकल्पिक

ग्राहक-लोकेशन सेवाओं के लिए अपॉइंटमेंट से पहले/बाद में जोड़ा गया यात्रा समय, मिनटों में। यह स्टाफ सदस्य के कैलेंडर को ब्लॉक करता है, लेकिन ग्राहक को दिखाई नहीं देता। service_location='business' होने पर अनदेखा किया जाता है।

travel_beforebooleanवैकल्पिक

Add travel time before the appointment (outbound trip).

travel_afterbooleanवैकल्पिक

Add travel time after the appointment (return trip).

promotionslist of objectsवैकल्पिक

इस सेवा या खास variants पर लागू समय-सीमित छूट।

duration_minutesinteger or nullवैकल्पिक<=43200

पहले वेरिएंट की अवधि सेट करता है। variants भेजे जाने पर अनदेखा किया जाता है।

pricedouble or nullवैकल्पिक>=0

पहले वेरिएंट की कीमत सेट करता है। variants भेजे जाने पर अनदेखा किया जाता है।

रिस्पॉन्स

सफल रिस्पॉन्स

has_affected_eventsboolean

अपडेट से आगामी बुकिंग की कीमत बदलने पर और उसके सेव न होने पर True। इसे लागू करने के लिए confirm-update endpoint पर फिर से भेजें।

serviceobject or nullवैकल्पिक

अपडेट की गई सेवा, या null अगर मौजूदा बुकिंग की कीमत बदलने के कारण अपडेट रोक दिया गया।

त्रुटियाँ

422
Unprocessable Entity Error