Update a principal's information

Update an existing principal's information

Body required
application/json

The principal information to update

_id
string required

The MongoDB ObjectID of the principal

identifier
string required

The identifier of the principal

creationDate
integer required

The creation date of the principal (UNIX Timestamp in milliseconds)

lastModification
integer required

The last modification date of the principal (UNIX Timestamp in milliseconds)

enabled
boolean required

If 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)

Responses
  • 200 Principal information successfully updated
    _id
    string required

    The MongoDB ObjectID of the principal

    identifier
    string required

    The identifier of the principal

    creationDate
    integer required

    The creation date of the principal (UNIX Timestamp in milliseconds)

    lastModification
    integer required

    The last modification date of the principal (UNIX Timestamp in milliseconds)

    enabled
    boolean required

    If 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)

  • 400 Unable to register the Principal Info
  • 401 Authentication error
  • 403 Forbidden action
  • 404 Principal Info not found
  • 500 Unexpected internal server error