If the account has a CloudApp Pro subscription, add or change the domain used for all links. Optionally, a URL may be provided to redirect visitors to the custom domain's root.
-
Requires authentication
-
HTTP Method: PUT
-
Body:
{ "user": { "domain": "dent.com", "domain_home_page": "http://hhgproject.org" } }
-
Status: 200 OK
-
Body:
{ "id": 1, "email": "[email protected]", "domain": "dent.com", "domain_home_page": "http://hhgproject.org", "private_items": true, "subscribed": true, "alpha": false, "created_at": "2010-12-10T17:07:01Z", "updated_at": "2010-12-10T20:33:38Z", "activated_at": "2010-12-10T17:07:01Z" }
curl --digest -u [email protected]:towel \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d \
'{
"user": {
"domain": "dent.com",
"domain_home_page": "http://hhgproject.org"
}
}' \
-X PUT \
"http://my.cl.ly/account"
If the domain or domain home page are unable to be added, an array of errors will be returned.
-
Status: 422 Unprocessable Entity
-
Body:
[ "Domain requires a paid plan" ]