Create a new principal

Create a new principal in Stream

Body required
application/json

The principal's information to register

identifier
string required

The identifier of the principal

permissions
array of objects | null (Permission)

The permissions of the principal

roles
array of string | null

The roles of the principal

Responses
  • 200 Principal information successfully registered
    id
    string (Internal ID) required

    Object internal ID

    identifier
    string required

    The identifier of the principal

    creationDate
    string required

    The creation date of the principal

    lastModification
    string required

    The last modification date of the principal

    permissions
    array of objects | null (Permission)

    The permissions of the principal

    roles
    array of string | null

    The roles of the principal

    lastAuthentication
    string

    The last authentication date of the principal

  • 400 Unable to register the principal
  • 401 Authentication error
  • 403 Forbidden action
  • 500 Unexpected internal server error