Authorization - Generate token
API Url
Generate a one-time login token for a user. Requires administrator privileges.
GET
http://localhost:16010/ProMarkREST/web/Auth/users/{id}/token
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | String | The unique User ID. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| token | Object | |
otpoptional | String | Generated OTP |
otpExpiryoptional | DateTime | OTP expiry timestamp. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |