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

Parameters

NameParameter typeTypeFormatDescription
projectId(required)pathstring-The project identifier found in the project overview screen of the management console.
domainId(required)pathstringguidThe domain identifier.

Responses

HTTP status codeReasonModel
200Success
403ForbiddenError
404Project not foundError
404Domain not found
422Validation errorError
500Internal server errorError

Examples

Update the host header for a domain

HTTP
PATCH: /api/management/projects/movieDb/domains/8fed8722-cd09-44f1-9e42-bd4e8a703213

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

Update a domain to be your primary domain

HTTP
PATCH: /api/management/projects/movieDb/domains/8fed8722-cd09-44f1-9e42-bd4e8a703213

{
	"isPrimary": true
}

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