Creates a principal within a domain

POST /domains/{domainId}/principals

The incoming JSON payload should contain properties for the newly created principal

If a 'password' property is provided, an identity will be created in the domain's default directory

Parameters

Name Required Type Description
domainId true string
HTTP Payload true string HTTP Payload

Response

"type": "object", "description": "Domain Principal", "properties": { "_doc": { "type": "string" }, "_system": { "type": "object", "properties": { "modified_on": { "type": "timestamp" }, "modified_by": { "type": "string" }, "modified_by_principal_id": { "type": "string" }, "modified_by_principal_domain_id": { "type": "string" }, "created_on": { "type": "timestamp" }, "created_by": { "type": "string" }, "created_by_principal_id": { "type": "string" }, "created_by_principal_domain_id": { "type": "string" } } }, "name": { "type": "string" }, "type": { "type": "string" }, "authorities": { "type": "array", "items": { "type": "string", "description": "Authority Key" } } }, "extends": "document" }