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": "326d6d82-1aa3-4488-8486-54f490622a52",
  "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>326d6d82-1aa3-4488-8486-54f490622a52</UserProviderKey>
</AddCustomerUserPost>

Response Information

Resource Description

IHttpActionResult

None.