POST api/Customer/AddUser

Adds relationship between user and customer.

Request Information

URI Parameters

None.

Body Parameters

AddCustomerUserPost
NameDescriptionTypeAdditional 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": "ea7778ed-fc7c-4328-9150-9fcddf761d98",
  "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>ea7778ed-fc7c-4328-9150-9fcddf761d98</UserProviderKey>
</AddCustomerUserPost>

Response Information

Resource Description

IHttpActionResult

None.