Add rules to a domain

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

Description

Adds rules to a redirectDomain

Expects a RedirectDomainAddRulesRequest object.

Returns a RedirectDomainAddRulesResponse object.

Url variables
:domain{{testdomain}}
JSON
{
    "rules": [
        {
            "subdomain": "*",
            "path": "\/partyboat*",
            "action": "302",
            "target": "https:\/\/control-ote.metaregistrar.com___path___#partyboatstar"
        },
        {
            "subdomain": "*",
            "path": "\/party*",
            "action": "302",
            "target": "https:\/\/control-ote.metaregistrar.com___path___#party"
        },
        {
            "subdomain": "*",
            "path": "\/*",
            "action": "302",
            "target": "https:\/\/control-ote.metaregistrar.com\/everythingelse"
        }
    ]
}

Example responses

Add a rule to a domain
Request Method & URL
POST {{basepath}}/redirectdomain/:domain/rule
Request Body:
{
    "rules": [
        {
            "subdomain": "*",
            "path": "\/party",
            "action": "301",
            "target": "https:\/\/www.metaregistrar.com\/party"
        }
    ]
}
Url variables
:domainexample2.com
Response Code:
200 OK
Response Body:
{
    "responseId": "mapi1_143b5446b9733b9c76152c2c5fbf1bbc1c75c081",
    "status": "ok",
    "message": "RedirectDomain updated, pending sync"
}