Create a new principal
Create a new principal in Horizon
The principal's information to register
_id
string
requiredThe MongoDB ObjectID of the principal |
identifier
string
requiredThe identifier of the principal |
creationDate
integer
requiredThe creation date of the principal (UNIX Timestamp in milliseconds) |
lastModification
integer
requiredThe last modification date of the principal (UNIX Timestamp in milliseconds) |
enabled
boolean
requiredIf the principal is allowed to login horizon |
contact
string | null
The contact e-mail of the principal |
permissions
array of objects | null (Permission)
The permissions of the principal |
roles
array of string | null
The roles of the principal |
teams
array of string | null
The teams of the principal |
savedQueries
array of objects | null (Principal queries)
The saved HQL queries of the principal. This is used by UI only. These values should not be manually set but should be copied on update |
customDashboards
array of objects | null (Dashboard)
The custom dashboards of the principal. This is used by UI only. These values should not be manually set but should be copied on update |
preferences
object | null (Principal Preferences)
The UI preferences of the principal. This is used by UI only. These values should not be manually set but should be copied on update |
lastAuthentication
integer | null
The last authentication date of the principal (UNIX Timestamp in milliseconds) |
-
200 Principal information successfully registered
_idstring requiredThe MongoDB ObjectID of the principal
identifierstring requiredThe identifier of the principal
creationDateinteger requiredThe creation date of the principal (UNIX Timestamp in milliseconds)
lastModificationinteger requiredThe last modification date of the principal (UNIX Timestamp in milliseconds)
enabledboolean requiredIf the principal is allowed to login horizon
contactstring | nullThe contact e-mail of the principal
permissionsarray of objects | null (Permission)The permissions of the principal
rolesarray of string | nullThe roles of the principal
teamsarray of string | nullThe teams of the principal
savedQueriesarray of objects | null (Principal queries)The saved HQL queries of the principal. This is used by UI only. These values should not be manually set but should be copied on update
customDashboardsarray of objects | null (Dashboard)The custom dashboards of the principal. This is used by UI only. These values should not be manually set but should be copied on update
preferencesobject | null (Principal Preferences)The UI preferences of the principal. This is used by UI only. These values should not be manually set but should be copied on update
lastAuthenticationinteger | nullThe last authentication date of the principal (UNIX Timestamp in milliseconds)
-
400 Unable to register the principal
-
401 Authentication error
-
403 Forbidden action
-
500 Unexpected internal server error