Create Domain
This will create a domain.
Request URL
POST
https://api.catapult.inetwork.com/v1/users/{userId}/domains
Supported Parameters
Parameter | Description | Mandatory |
---|---|---|
name | The name is a unique URI to be used in DNS lookups | Yes |
description | String to describe the domain | Yes |
Example 1 of 1: Create a domain
curl -v -X POST https://api.catapult.inetwork.com/v1/users/{userId}/domains -u {token}:{secret} -H "Content-type: application/json" -d
'
{
"name" : "mycoolapp",
"description" : "disruptive app that is going to revolutionize telecom"
}
'
var params = {
name: "mycoolapp",
description: "disruptive app that is going to revolutionize telecom"
}
client.Domain.create(params)
.then(function (domainId) {
console.log(domainId);
});
var domain = await client.Domain.CreateAsync(new CreateDomainData{
Name = "mycoolapp",
Description = "disruptive app that is going to revolutionize telecom"
});
Console.WriteLine($"Created domain with id {domain.Id}");
// Created domain with id d-1234
domain = Domain.create(client, {
:name => "mycoolapp",
:description => "disruptive app that is going to revolutionize telecom"
})
The above command returns HTTP Header structured like this:
HTTP/1.1 201 Created
Location: /v1/users/{user-id}/domains/{domain-id}