Create alias
Adds a alias to your site
POST api/servers/{server}/sites/{site}/aliases
Parameters
Parameter | Type | Status | Description |
---|---|---|---|
aliases | array | required | An array containing all the aliases you want to add |
Example request:
curl -X POST "https://ploi.io/api/servers/{server}/sites/{site}/aliases" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"aliases" : ["third-alias.com", "fourth-alias.com"]}'
Example response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": {
"aliases": [
"first-alias.com",
"second-alias.com",
"third-alias.com",
"fourth-alias.com"
],
"count": 4,
"main": "alias.com"
}
}