Create a redirect rule
Creates a new redirect rule in your organization.
The fromUrl is normalized on creation: query parameters and hash fragments are stripped, the hostname is lowercased, and trailing slashes are removed. The fromUrl hostname must match the Help Center's configured custom domain.
The target article or collection must exist and have a resolvable URL (i.e., a published translation with a slug).
Request Body
Required attributes:
helpCenterId- The ID of the help center this rule belongs tolocale- Locale code used to resolve the target translationfromUrl- The full absolute URL to redirect from (must match the help center's custom domain)targetType- "article" or "collection"targetId- The ID of the target article or collection
Response
Returns the created redirect rule object.
Errors
400- Invalid request data, fromUrl does not match custom domain, or target not found
Body
Full absolute URL to redirect from. Must use http or https protocol. Query parameters and hash fragments are stripped during normalization. The hostname must match the Help Center custom domain.
2048https://help.example.com/en/old/getting-startedHelp center identifier this redirect rule belongs to
1 - 16^[a-zA-Z0-9]+$ox6qrqprmsuqaunjLocale code for the redirect rule. Used to resolve the target article/collection translation.
ar, am, fa, ht, lo, my, pa, ps, so, tl, ur, he, ta, te, mr, gu, kn, ml, ha, jv, yo, ig, uz, ne, sd, az, si, km, kk, bn, bs, pt-BR, bg, ca, hr, cs, da, nl, en, et, fi, fr, de, el, hi, hu, id, it, ja, ko, lv, lt, ms, mn, nb, pl, pt, ro, ru, sr, zh-CN, sk, sl, es, sw, sv, th, zh-TW, tr, uk, vienID of the target article or collection
1 - 16^[a-zA-Z0-9]+$10021362Response
Created
Canonical source URL being redirected from (query and hash stripped)
https://help.example.com/en/old/getting-startedLocale code for the redirect rule
ar, am, fa, ht, lo, my, pa, ps, so, tl, ur, he, ta, te, mr, gu, kn, ml, ha, jv, yo, ig, uz, ne, sd, az, si, km, kk, bn, bs, pt-BR, bg, ca, hr, cs, da, nl, en, et, fi, fr, de, el, hi, hu, id, it, ja, ko, lv, lt, ms, mn, nb, pl, pt, ro, ru, sr, zh-CN, sk, sl, es, sw, sv, th, zh-TW, tr, uk, vienObject type identifier
redirect_ruleredirect_ruleType of content the redirect points to
article, collectionarticleMore in Help Centers
GETList help centersGETGet a help center by IDGETList collectionsPOSTCreate a collectionStill need help? Ask the team