POST api/Customer/AddUser
Adds relationship between user and customer.
Request Information
URI Parameters
None.
Body Parameters
AddCustomerUserPostName | Description | Type | Additional information |
---|---|---|---|
UserProviderKey |
User id |
string |
None. |
CustomerId |
The user will be added to the Customer with this id. |
integer |
None. |
CanAccessOthersTickets |
If true user can see others tickets |
boolean |
None. |
CanEditOthersTickets |
If true user can edit others tickets |
boolean |
None. |
CanManageOthersTickets |
If true user can manage others tickets workflow |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserProviderKey": "3c00b41d-fb04-425f-b875-f261dddd3c4d", "CustomerId": 2, "CanAccessOthersTickets": true, "CanEditOthersTickets": true, "CanManageOthersTickets": false }
application/xml, text/xml
Sample:
<AddCustomerUserPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <CanAccessOthersTickets>true</CanAccessOthersTickets> <CanEditOthersTickets>true</CanEditOthersTickets> <CanManageOthersTickets>false</CanManageOthersTickets> <CustomerId>2</CustomerId> <UserProviderKey>3c00b41d-fb04-425f-b875-f261dddd3c4d</UserProviderKey> </AddCustomerUserPost>
Response Information
Resource Description
IHttpActionResultNone.