Creates a user request of the desired type.
This resource is available only for Global admin, Domain admin, or User manager |
Since BellaDati 2.7.19.1, this endpoint is public for requests PASSWORD_RESET and UNLOCK_ACCOUNT. Thus, no authenticated user is required to call it for these 2 requests |
Resource URL | |
---|---|
HTTP Method | POST |
Parameters | Detail |
---|---|
username | Username of the user the request is created for. |
request_type | Specifies the type of request. Available types are:
|
requestPin (form parameter, optional) | Specifies whether PIN will be sent instead of URL link. If not set URL link is sent by default. Available values: true / false |
endpoint | When custom request is used, path to belladati endpoint to be executed OK or ERROR is returned as process request action. |
parameters | When custom request is used, set parameters for endpoint |
request_id and request_code of the created request.
Example: 1544;RDQX1Qx9UokSf4n3KAVWgNClvrFUqncSZg7fK3gnVAfNIAOylN
Gathered request_id and request_code are consumed by the specific BellaDati service. You should create AJAX call with following URL pattern: http://belladati_host/user/processRequest/{request_id}/{request_code}?redirect={redirect_url} |
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "request_type=LOGIN_UNATTENDED" https://service.belladati.com/api/users/username1/requests |
Response in format oauth_token;oauth_token_secret:
1544;RDQX1Qx9UokSf4n3KAVWgNClvrFUqncSZg7fK3gnVAfNIAOylN |