POST api/accessrights/accessright

Add a new access right based on data passed in

Request Information

URI Parameters

None.

Body Parameters

AddAccessRight
NameDescriptionTypeAdditional information
AccessRightType

Name of the access right

enAccessRightType

Required

FirstObjectType

The object type of the first object ID

enObjectType

Required

FirstObjectID

ID of the first object

integer

Required

SecondObjectType

The object type of the second object

enObjectType

Required

SecondObjectID

ID of second object

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "AccessRightType": 10000,
  "FirstObjectType": 92,
  "FirstObjectID": 2,
  "SecondObjectType": 62,
  "SecondObjectID": 63
}

application/xml, text/xml

Sample:
<AddAccessRight xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPP.B2B.Webservices2.Contract.AccessRights">
  <AccessRightType>Search</AccessRightType>
  <FirstObjectID>2</FirstObjectID>
  <FirstObjectType>AccessRightGroup</FirstObjectType>
  <SecondObjectID>63</SecondObjectID>
  <SecondObjectType>LicenseeGroup</SecondObjectType>
</AddAccessRight>

Response Information

Resource Description

201 created on success

None.

Response Formats