Update a rule

Request Information
URL PATCH {{basepath}}/redirectdomain/:domain/rule/:rule
CategoryRedirect

Description

Updates a redirectdomain rule

Expects a RedirectDomainUpdateRuleRequest object.

Returns a RedirectDomainUpdateRuleResponse object.

Url variables
:domain{{testdomain}}
:rule100
JSON
{
    "subdomain": "*",
    "path": "\/*",
    "action": "301",
    "target": "https:\/\/www.metaregistrar.com\/wildcard"
}

Example responses

update a rule
Request Method & URL
PATCH {{basepath}}/redirectdomain/:domain/rule/:rule
Request Body:
{
    "subdomain": "*",
    "path": "\/*",
    "action": "301",
    "target": "https:\/\/www.metaregistrar.com\/wildcard"
}
Url variables
:domain{{testdomain}}
:rule70
Response Code:
200 OK
Response Body:
{
    "responseId": "mapi1_fb1f9439130700ad8bf0ce1729e79cb1e1184a03",
    "status": "ok",
    "message": "RedirectDomain rule updated, pending sync"
}