ai

GET /v1/ai/site-builds/targets

Where a draft can be published, and what is already on each destination.

सभी ai एंडपॉइंट्स

सभी डेवलपर दस्तावेज़

प्रमाणन

बेरर टोकन के रूप में एक API कुंजी भेजें। कुंजी के पास hosting.deploy.manage अनुमति होनी चाहिए; इसके बिना एक कुंजी को 404 के बजाय 403 के साथ अस्वीकार कर दिया जाता है।

यह एंडपॉइंट कोई संगठन आईडी नहीं लेता है। आपकी कुंजी पहले से ही उस संगठन की पहचान करती है जिससे वह संबंधित है, और प्रतिक्रिया उसी के दायरे में है।

इसे आज़माएँ

कोणार्कित ब्रैकेट्स में दी गई किसी भी चीज़ को अपने मानों से बदलें, और की प्लेसहोलर को अपने डैशबोर्ड की एक की से बदलें।

curl -X GET https://api.zinndigital.com/v1/ai/site-builds/targets \
  -H "Authorization: Bearer zdk_live_…"

साइन इन हैं? आपके डैशबोर्ड में मौजूद API कंसोल आपकी वास्तविक संगठन आईडी और आपकी अपनी कुंजी स्वतः भर देता है, और लाइव API के विरुद्ध अनुरोध चलाता है ताकि आप वास्तविक प्रतिक्रिया देख सकें। इस एंडपॉइंट को API कंसोल में खोलें

विवरण

Lists every site the caller may deploy to, and — the part that did not exist before — what is already there. Publishing used to take a site id with no way to discover which ids were valid, and no way to learn that a destination had a live business on it. occupancy is the field to read, never known_files: empty — nothing is deployed. Publishing here destroys nothing. ours — we published the current contents ourselves, from an earlier draft. occupied — something is there and we can read it, because the site has a connected repository. unknown — something may be there and we cannot read it. This is deliberately not reported as empty: an empty destination is precisely the one where overwriting is safe, so the two must never collapse. A destination we cannot read offers replace only, and the customer is told to connect a repository if they want to add to it instead. allowed_dispositions is advisory — the screen uses it to decide which buttons to show, and the engine re-derives it when a publication is started. A client that offers a disposition this list omits is refused with disposition_not_available. Requires hosting.deploy.manage, even though this only reads: the list is "places you may publish to", and offering a destination the caller cannot use both answers the wrong question and discloses sites they may only view.

पैरामीटर

नामप्रकारआवश्यकयह क्या है
search (query)stringनहींMatch against the destination's primary domain.

प्रतिक्रिया

नामप्रकारआवश्यकयह क्या है
targetsSiteMakerTarget[]हाँ
truncatedbooleanहाँtrue when targets is a full page and more destinations exist beyond it. The list is ordered by hostname and capped, so a site that sorts past the cap is absent rather than…
dispositionsobject[]हाँThe catalogue, so a client never hardcodes the choices and adding one cannot leave a stale copy behind.

त्रुटियाँ जो यह एंडपॉइंट लौटा सकता है

401 · 403 · 429