POST Business/SetPermissionBusiness
Request Information
URI Parameters
None.
Body Parameters
SetPermissionBusinessModelName | Description | Type | Additional information |
---|---|---|---|
BusinessId | integer |
None. |
|
User | string |
None. |
|
BusinessPermissionsList | Collection of BusinessPermissionsListModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "BusinessId": 1, "User": "sample string 2", "BusinessPermissionsList": [ { "PermissionId": 1, "Action": 2 }, { "PermissionId": 1, "Action": 2 } ] }
application/xml, text/xml
Sample:
<SetPermissionBusinessModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TowPaymentsAPI.Models"> <BusinessId>1</BusinessId> <BusinessPermissionsList> <BusinessPermissionsListModel> <Action>2</Action> <PermissionId>1</PermissionId> </BusinessPermissionsListModel> <BusinessPermissionsListModel> <Action>2</Action> <PermissionId>1</PermissionId> </BusinessPermissionsListModel> </BusinessPermissionsList> <User>sample string 2</User> </SetPermissionBusinessModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |