Update a redirect rule
PATCH/v2/help_center/redirect_rules/{id}
Updates an existing redirect rule. Only include the fields you wish to update.
If fromUrl is provided, it will be re-normalized and validated against the Help Center’s custom domain. If targetType or targetId is changed, the new target must exist and have a resolvable URL.
Path Parameters
id- The unique identifier of the redirect rule to update
Request Body
All fields are optional. Only provided fields will be updated:
helpCenterId- The help center IDlocale- Locale codefromUrl- Updated source URL (will be re-normalized)targetType- “article” or “collection”targetId- ID of the new target article or collection
Response
Returns the updated redirect rule object.
Errors
404- Redirect rule not found400- Invalid data, domain mismatch, duplicate fromUrl, or target not found
Update a redirect rule
curl https://do.featurebase.app/v2/help_center/redirect_rules/$ID \
-X PATCH \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $FEATUREBASE_API_KEY" \
-d '{
"fromUrl": "https://help.example.com/en/old/getting-started",
"helpCenterId": "ox6qrqprmsuqaunj",
"locale": "en",
"targetId": "10021362",
"targetType": "article"
}'{
"id": "507f1f77bcf86cd799439011",
"createdAt": "2026-02-11T12:00:00.000Z",
"fromUrl": "https://help.example.com/en/old/getting-started",
"helpCenterId": "ox6qrqprmsuqaunj",
"locale": "en",
"object": "redirect_rule",
"targetId": "1234567",
"targetType": "article",
"updatedAt": "2026-02-11T12:00:00.000Z"
}Returns Examples
{
"id": "507f1f77bcf86cd799439011",
"createdAt": "2026-02-11T12:00:00.000Z",
"fromUrl": "https://help.example.com/en/old/getting-started",
"helpCenterId": "ox6qrqprmsuqaunj",
"locale": "en",
"object": "redirect_rule",
"targetId": "1234567",
"targetType": "article",
"updatedAt": "2026-02-11T12:00:00.000Z"
}