POST api/Roles/AddBusinessUserRoleV1
Request Information
URI Parameters
None.
Body Parameters
AddBusinessUserRoleV1Name | 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. |
|
ReportToUserIDs | string |
None. |
|
LevelID | integer |
None. |
|
LevelvalueID | integer |
None. |
|
AssignSKUs | Collection of AssignSKU |
None. |
|
userBusinessIds | Collection of UserBusinessIds |
None. |
|
Password | string |
None. |
|
SendInvite | integer |
None. |
|
CustomerType | integer |
None. |
|
TerritoryId | integer |
None. |
|
LicenseNumber | string |
None. |
|
CompanyName | string |
None. |
|
ThreePLcompanyId | integer |
None. |
|
BankAccNo | string |
None. |
|
BankName | string |
None. |
|
BVNNo | string |
None. |
|
LgaID | integer |
None. |
|
StateID | integer |
None. |
|
isVsr | boolean |
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", "ReportToUserIDs": "sample string 11", "LevelID": 12, "LevelvalueID": 13, "AssignSKUs": [ { "BrandID": 1, "ItemID": 2, "Type": 3 }, { "BrandID": 1, "ItemID": 2, "Type": 3 } ], "userBusinessIds": [ { "userId": 1, "businessId": 2, "businessName": "sample string 3", "roleId": 4, "reportToUserId": 5 }, { "userId": 1, "businessId": 2, "businessName": "sample string 3", "roleId": 4, "reportToUserId": 5 } ], "Password": "sample string 14", "SendInvite": 15, "CustomerType": 16, "TerritoryId": 17, "LicenseNumber": "sample string 18", "CompanyName": "sample string 19", "ThreePLcompanyId": 20, "BankAccNo": "sample string 21", "BankName": "sample string 22", "BVNNo": "sample string 23", "LgaID": 24, "StateID": 25, "isVsr": true }
application/xml, text/xml
Sample:
<AddBusinessUserRoleV1 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> <BVNNo>sample string 23</BVNNo> <BankAccNo>sample string 21</BankAccNo> <BankName>sample string 22</BankName> <BusinessID>1</BusinessID> <BusinessName>sample string 2</BusinessName> <CompanyName>sample string 19</CompanyName> <CreatedBy>4</CreatedBy> <CustomerType>16</CustomerType> <DeleteUserids>sample string 10</DeleteUserids> <Email>sample string 6</Email> <LevelID>12</LevelID> <LevelvalueID>13</LevelvalueID> <LgaID>24</LgaID> <LicenseNumber>sample string 18</LicenseNumber> <Password>sample string 14</Password> <Phone>sample string 7</Phone> <ReportToUserIDs>sample string 11</ReportToUserIDs> <RolesIDs>sample string 9</RolesIDs> <SendInvite>15</SendInvite> <StateID>25</StateID> <TerritoryId>17</TerritoryId> <ThreePLcompanyId>20</ThreePLcompanyId> <UserId>3</UserId> <UserName>sample string 5</UserName> <isVsr>true</isVsr> <userBusinessIds> <UserBusinessIds> <businessId>2</businessId> <businessName>sample string 3</businessName> <reportToUserId>5</reportToUserId> <roleId>4</roleId> <userId>1</userId> </UserBusinessIds> <UserBusinessIds> <businessId>2</businessId> <businessName>sample string 3</businessName> <reportToUserId>5</reportToUserId> <roleId>4</roleId> <userId>1</userId> </UserBusinessIds> </userBusinessIds> </AddBusinessUserRoleV1>
application/x-www-form-urlencoded
Sample:
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 06:54:01", "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>