POST /_system/entity/domains
Add a new domain to the entity (requires setting_manage_domains permission)
Add a new domain to the entity (requires setting_manage_domains permission)
| Key | Type | Example | Description |
|---|---|---|---|
| authorization required | string |
"Bearer access_token"
|
Access token
|
| Key | Type | Example | Description |
|---|---|---|---|
| name optional | string |
"example-string"
|
Domain name
|
| template_login optional | string |
"example-string"
|
|
| template_security optional | string |
"example-string"
|
|
| template_passwordreset optional | string |
"example-string"
|
|
| template_passwordreset_email optional | string |
"example-string"
|
{
"message": "ok"
}
{
"error": "ERROR"
}
| Status | Error Code | Description |
|---|---|---|
400 |
ERROR |
Domain name already exists |
401 |
INVALID_ACCESS_TOKEN |
Authentication required or invalid token |
| Permission | Description |
|---|---|
Bearer token |
Access token required via Authorization header, x-authtoken, x-token, query param, or cookie |
entity_create |
Required scope: entity_create |
Back to Entity Management Return to the Entity Management category to view other endpoints All API Categories Browse all available API categories