POST user/adduser
Pass HTTP Authorization request header with value "Bearer {token}" to perform this action.
Request Information
URI Parameters
None.
Body Parameters
AddUserRequestName | Description | Type | Additional information |
---|---|---|---|
FirstName |
First Name |
string |
Required
|
LastName |
Last Name |
string |
Required
|
|
string |
Required
|
|
Password |
Password |
string |
Required
|
RoleName |
Role Name |
string |
Required
|
UserFunction |
User Function |
UserFunctionType |
Required
|
UserType |
UserType |
UserType |
Optional. If not provided
0 (Standard) will be treated by default |
CarrierIds |
Carrier Ids. At Least 1 CarrierId should be present |
Collection of integer |
Required
|
PackagesIds |
Package Ids |
Collection of integer |
Optional
|
UserWarehousesIds |
User Warehouses Ids |
Collection of integer |
Optional
|
DefaultUserWarehousesId |
Default User Warehouses Id |
integer |
Optional
|
Active |
Active. if null then it will be considered as false |
boolean |
Optional
|
Request Formats
application/json, text/json
{ "FirstName": "sample string 1", "LastName": "sample string 2", "Email": "sample string 3", "Password": "sample string 4", "RoleName": "sample string 5", "UserFunction": 1, "UserType": 0, "CarrierIds": [ 1, 2 ], "PackagesIds": [ 1, 2 ], "UserWarehousesIds": [ 1, 2 ], "DefaultUserWarehousesId": 6, "Active": true }
Response Information
Resource Description
BadResponseName | Description | Type | Additional information |
---|---|---|---|
Data |
Data returned by api |
Object |
None. |
Code |
Response code returned by api |
HttpStatusCode |
None. |
Message |
Human readable message |
string |
None. |
Response Formats
application/json, text/json
{ "Code": 100, "Message": "sample string 2", "Data": {} }