hosting
DELETE /v1/sites/{siteId}/redirects/{redirectId}
Delete a redirect from a site.
تصدیقهویت
یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د sites.view اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.
دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.
هڅه وکړئ
د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/redirects/{redirectId} \
-H "Authorization: Bearer zdk_live_…"ننوتي یاست؟ ستاسو په ډشبورډ کې د API کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د API په کنسول کې پرانیزئ
تفصیلات
Removes one rule. As with the create, the vendor call is a whole-set write, so the engine reads the rules, drops this one and sends the rest back — the surviving rules are carried, never dropped as a side effect of removing one. `404` for a site with no managed hosting package, and for an id that is not on it. Requires `sites.view` and `sites.panel_access`.
پارامترونه
| نوم | ډول | اړین | دا څه شی دی |
|---|---|---|---|
siteId (path) | Uuid | هو | Site ID (UUIDv7). |
redirectId (path) | string | هو | The opaque id returned by `listSiteRedirects`. Engine-minted and base64url, so it carries `-` and `_`; percent-encode it rather than assuming it is path-safe. |
تېروتنې چې دا پای ټکی یې بیرته راګرځولی شي
401 · 403 · 404 · 409 · 422 · 429 · 503