POST api/Roles/AddBusinessUserRole
Request Information
URI Parameters
None.
Body Parameters
AddBusinessUserRoleName | Description | Type | Additional information |
---|---|---|---|
BusinessID | integer |
None. |
|
BusinessName | string |
None. |
|
UserId | integer |
None. |
|
CreatedBy | integer |
None. |
|
UserName | string |
None. |
|
string |
None. |
||
Phone | string |
None. |
|
ActionType | integer |
None. |
|
RolesIDs | string |
None. |
|
DeleteUserids | string |
None. |
|
ReportToUserID | integer |
None. |
|
LevelID | integer |
None. |
|
LevelvalueID | integer |
None. |
|
AssignSKUs | Collection of AssignSKU |
None. |
|
Password | string |
None. |
|
AuthorizationCode | string |
None. |
|
SendInvite | integer |
None. |
|
LocationHierarchy | string |
None. |
|
ReportToUserIDs | string |
None. |
|
IsRoleChanged | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "BusinessID": 1, "BusinessName": "sample string 2", "UserId": 3, "CreatedBy": 4, "UserName": "sample string 5", "Email": "sample string 6", "Phone": "sample string 7", "ActionType": 8, "RolesIDs": "sample string 9", "DeleteUserids": "sample string 10", "ReportToUserID": 11, "LevelID": 12, "LevelvalueID": 13, "AssignSKUs": [ { "BrandID": 1, "ItemID": 2, "Type": 3 }, { "BrandID": 1, "ItemID": 2, "Type": 3 } ], "Password": "sample string 14", "AuthorizationCode": "sample string 15", "SendInvite": 16, "LocationHierarchy": "sample string 17", "ReportToUserIDs": "sample string 18", "IsRoleChanged": 19 }
application/xml, text/xml
Sample:
<AddBusinessUserRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ActionType>8</ActionType> <AssignSKUs> <AssignSKU> <BrandID>1</BrandID> <ItemID>2</ItemID> <Type>3</Type> </AssignSKU> <AssignSKU> <BrandID>1</BrandID> <ItemID>2</ItemID> <Type>3</Type> </AssignSKU> </AssignSKUs> <AuthorizationCode>sample string 15</AuthorizationCode> <BusinessID>1</BusinessID> <BusinessName>sample string 2</BusinessName> <CreatedBy>4</CreatedBy> <DeleteUserids>sample string 10</DeleteUserids> <Email>sample string 6</Email> <IsRoleChanged>19</IsRoleChanged> <LevelID>12</LevelID> <LevelvalueID>13</LevelvalueID> <LocationHierarchy>sample string 17</LocationHierarchy> <Password>sample string 14</Password> <Phone>sample string 7</Phone> <ReportToUserID>11</ReportToUserID> <ReportToUserIDs>sample string 18</ReportToUserIDs> <RolesIDs>sample string 9</RolesIDs> <SendInvite>16</SendInvite> <UserId>3</UserId> <UserName>sample string 5</UserName> </AddBusinessUserRole>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponseName | Description | Type | Additional information |
---|---|---|---|
Version | string |
None. |
|
dateTime | string |
None. |
|
StatusCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Version": "1.0.0", "dateTime": "2025/04/04 03:44:47", "StatusCode": 1, "ErrorMessage": "sample string 2", "Result": {} }
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>