POST /v1/users?role=default

From bMob Rest API
Jump to navigation Jump to search

Detailed Description[edit | edit source]

Creates a new user and associates it with the current partner ID. This resource is only available to Partner Admins; by default the Role assigned to the new user is "Default" role. Even thought there is an option to set the type of user, the created user is always a Direct Customer.

Resource URL[edit | edit source]

https://cs15.salesforce.com/services/apexrest/v1/users?role=default

Parameters[edit | edit source]

Parameter Required Description
first_name Yes required First Name of the new user.
last_name Yes required Last Name of the new user.
email Yes Email for the new user.
password NO password for the new user.
type Yes type of user to create either : customer or partner.
role Yes required role of the new user, either : admin, staff or default

Sample Responce[edit | edit source]

"{
  005e0000001ELO7AAO
}"