POST api/Roles/AddBusinessUserRole

Request Information

URI Parameters

None.

Body Parameters

AddBusinessUserRole
NameDescriptionTypeAdditional information
BusinessID

integer

None.

BusinessName

string

None.

UserId

integer

None.

CreatedBy

integer

None.

UserName

string

None.

Email

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.

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
    }
  ]
}

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>
  <BusinessID>1</BusinessID>
  <BusinessName>sample string 2</BusinessName>
  <CreatedBy>4</CreatedBy>
  <DeleteUserids>sample string 10</DeleteUserids>
  <Email>sample string 6</Email>
  <LevelID>12</LevelID>
  <LevelvalueID>13</LevelvalueID>
  <Phone>sample string 7</Phone>
  <ReportToUserID>11</ReportToUserID>
  <RolesIDs>sample string 9</RolesIDs>
  <UserId>3</UserId>
  <UserName>sample string 5</UserName>
</AddBusinessUserRole>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VCAPIResponse
NameDescriptionTypeAdditional 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": "2020/09/18 10:47:18",
  "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>