Skip to main content
POST/api/management/projects/{projectId}/domains/

Parameters

NameParameter typeTypeFormatDescription
projectId(required)pathstring-The project identifier found in the project overview screen of the management console.
Domain(required)bodyobjectdomainThe domain to create.

Responses

HTTP status codeReasonModel
200Success
401UnauthorizedError
404Project not foundError
422Validation errorError
500Internal server errorError

Examples

Create a new domain for a specifc project

JSON
POST: /api/management/projects/movies/domains/

{
	"hostHeader": "www.mysite.com"
}

Remarks

The first domain created will be set as your primary domain. Subsequent domains created will be set to isPrimary = false unless you specifically set isPrimary = true as part of the POST data.

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request