BellaDati Technical Documentation : POST Create User Request

POST /users/{username}/requests

Creates an user request of desired type.

Resource Information

Parameters

Parameters

Detail

username
(path paramter)

Username of the user the request is created for.

request_type
(form parameter)

Specifies the type of the request. Available types are:

  • LOGIN_UNATTENDED
  • PASSWORD_SET
  • PASSWORD_RESET
  • UNLOCK_ACCOUNT
  • LOGIN

Returns

request_id and request_code of the created request.

Example: 1544;RDQX1Qx9UokSf4n3KAVWgNClvrFUqncSZg7fK3gnVAfNIAOylN

 

Icon

Gathered request_id and request_code are consumed by the specific BellaDati service available at:

http://belladati_host/user/processRequest/{request_id}/{request_code}?redirect={redirect_url}

 

Sample Request / Response

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/users/username1/requests

Response in format oauth_token;oauth_token_secret:

1544;RDQX1Qx9UokSf4n3KAVWgNClvrFUqncSZg7fK3gnVAfNIAOylN