/help_center/help_centers/{help_center_id}/redirectsCreate a help center redirect
Creates a redirect in a help center, mapping a source URL to an article or collection. Supply from_url, locale, target_type, and target_id; the source URL must be absolute and within the help center's URL space, and the target must belong to that help center. Use the read_write_help_center_redirects_scope OAuth scope to create redirects.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Redirect details. Supply from_url, locale, target_type, and target_id.
2 documented failures
parameter_not_foundfrom_url is required
parameter_invalidtarget_type must be 'article' or 'collection'
One documented failure
unauthorizedAccess Token Invalid
One documented failure
not_foundResource not found
One documented failure
resource_conflictA redirect with that URL already exists
One documented failure
data_invalidfrom_url must be an absolute URL within this help center's URL space
A 400 is returned when a required field is missing or a value is invalid; target_type must be article or collection, and from_url must be an absolute URL within the help center's URL space. A 401 indicates missing or invalid authorization, a 404 indicates the help center was not found, and a 409 indicates a conflict creating the redirect. A 422 is returned when the redirect details cannot be processed; the target identified by target_id must belong to the specified help center.