POST api/Business/ExistingUser
Add existing user to business uid = user id, bid = business id
Request Information
URI Parameters
None.
Body Parameters
BusinessToUserDTOName | Description | Type | Additional information |
---|---|---|---|
userID | integer |
None. |
|
busID | integer |
None. |
|
roleID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "userID": 1, "busID": 2, "roleID": 3 }
text/html
Sample:
{"userID":1,"busID":2,"roleID":3}
application/xml, text/xml
Sample:
<BusinessToUserDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._BOL"> <busID>2</busID> <roleID>3</roleID> <userID>1</userID> </BusinessToUserDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
StatusDTOName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "id": 1, "msg": "sample string 1" }
text/html
Sample:
{"id":1,"msg":"sample string 1"}
application/xml, text/xml
Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL"> <id>1</id> <msg>sample string 1</msg> </StatusDTO>