Creates new domain.
This resource is available only for Global admin and only in multi-domain configurations. |
Resource URL | |
---|---|
HTTP Method | POST |
Parameter | Detail | Example | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | Form contents to submit in following JSON format:
|
|
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "data={\"name\":\"My New Domain\"}" https://service.belladati.com/api/domains/create |
When the form has been submitted successfully, the server replies with an HTTP status code of 200 and a body that contains ID of new domain.