Authorization - Authorize a user

API Url

Authorize a give user into ProMark.

POST
http://localhost:16010/ProMarkREST/web/Auth/authorization

Permissions: sysop

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    authorizationObject

The user data to be authorized

      passwordString

The password to be validated.

      usernameString

Username of the user.

Request example:

{
"request": {
"data": {
"authorization": {
"username": "john@domain.com",
"password": "mySecretPassword"
}
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.