POST api/v1/SecurityRoles
Adds new security role
Request Information
URI Parameters
None.
Body Parameters
SecurityRoleName | Description | Type | Additional information |
---|---|---|---|
Description |
Description |
string |
None. |
Name |
Name |
string |
None. |
OnlineAccessCode |
Online access code. Empty when retrieving security roles and must be retrieved with a different method. If given as empty string during update, uses previous code. |
string |
None. |
OnlineRelayOperatingTimeMs |
How long the relay is on after access is granted. In milliseconds. |
integer |
None. |
RealEstate_ID |
Real estate id |
globally unique identifier |
None. |
SecurityRole_ID |
ID |
globally unique identifier |
None. |
TypeMask |
Type |
SecurityRoleTypeMask |
None. |
Zone_ID |
Zone id |
globally unique identifier (nullable) |
None. |
Request Formats
application/json, text/json
Sample:
{ "Description": "sample string 1", "Name": "sample string 2", "OnlineAccessCode": "sample string 3", "OnlineRelayOperatingTimeMs": 4, "RealEstate_ID": "16795589-73a9-4468-b38d-63759b7e5fe3", "SecurityRole_ID": "580a512e-faa8-47b7-90c8-e8592726e09f", "TypeMask": 0, "Zone_ID": "c0ce3234-fc40-4db5-8eb3-7a039fa7cd22" }
application/xml, text/xml
Sample:
<SecurityRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iloq.manager.server.bus"> <Description>sample string 1</Description> <Name>sample string 2</Name> <OnlineAccessCode>sample string 3</OnlineAccessCode> <OnlineRelayOperatingTimeMs>4</OnlineRelayOperatingTimeMs> <RealEstate_ID>16795589-73a9-4468-b38d-63759b7e5fe3</RealEstate_ID> <SecurityRole_ID>580a512e-faa8-47b7-90c8-e8592726e09f</SecurityRole_ID> <TypeMask>None</TypeMask> <Zone_ID>c0ce3234-fc40-4db5-8eb3-7a039fa7cd22</Zone_ID> </SecurityRole>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SecurityRoleName | Description | Type | Additional information |
---|---|---|---|
Description |
Description |
string |
None. |
Name |
Name |
string |
None. |
OnlineAccessCode |
Online access code. Empty when retrieving security roles and must be retrieved with a different method. If given as empty string during update, uses previous code. |
string |
None. |
OnlineRelayOperatingTimeMs |
How long the relay is on after access is granted. In milliseconds. |
integer |
None. |
RealEstate_ID |
Real estate id |
globally unique identifier |
None. |
SecurityRole_ID |
ID |
globally unique identifier |
None. |
TypeMask |
Type |
SecurityRoleTypeMask |
None. |
Zone_ID |
Zone id |
globally unique identifier (nullable) |
None. |
Response Formats
application/json, text/json
Sample:
{ "Description": "sample string 1", "Name": "sample string 2", "OnlineAccessCode": "sample string 3", "OnlineRelayOperatingTimeMs": 4, "RealEstate_ID": "534952ac-9200-4355-835a-54a996cbbf0b", "SecurityRole_ID": "b1a5e227-ddf4-4aba-9be3-3d7610eff0fd", "TypeMask": 0, "Zone_ID": "8c1a11ab-8487-4c1b-8f1d-6d260d31db59" }
application/xml, text/xml
Sample:
<SecurityRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iloq.manager.server.bus"> <Description>sample string 1</Description> <Name>sample string 2</Name> <OnlineAccessCode>sample string 3</OnlineAccessCode> <OnlineRelayOperatingTimeMs>4</OnlineRelayOperatingTimeMs> <RealEstate_ID>534952ac-9200-4355-835a-54a996cbbf0b</RealEstate_ID> <SecurityRole_ID>b1a5e227-ddf4-4aba-9be3-3d7610eff0fd</SecurityRole_ID> <TypeMask>None</TypeMask> <Zone_ID>8c1a11ab-8487-4c1b-8f1d-6d260d31db59</Zone_ID> </SecurityRole>