POST api/v1/SecurityRoles
Adds new security role
Request Information
URI Parameters
None.
Body Parameters
SecurityRole| Name | 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": "5786aeea-9286-4178-9468-6d9543ec4eb6",
"SecurityRole_ID": "fd41f79d-0359-43d8-b188-29146df44a97",
"TypeMask": 0,
"Zone_ID": "e8a1a861-14b4-4d2e-9b9c-3816fe48b91c"
}
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>5786aeea-9286-4178-9468-6d9543ec4eb6</RealEstate_ID> <SecurityRole_ID>fd41f79d-0359-43d8-b188-29146df44a97</SecurityRole_ID> <TypeMask>None</TypeMask> <Zone_ID>e8a1a861-14b4-4d2e-9b9c-3816fe48b91c</Zone_ID> </SecurityRole>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SecurityRole| Name | 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": "7fd22c06-9bb6-45a9-adbe-8381e6ea82ee",
"SecurityRole_ID": "b8afe668-b87b-4751-a91a-daed4604651f",
"TypeMask": 0,
"Zone_ID": "2781bca4-4e72-4e71-9c0c-8238a576097d"
}
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>7fd22c06-9bb6-45a9-adbe-8381e6ea82ee</RealEstate_ID> <SecurityRole_ID>b8afe668-b87b-4751-a91a-daed4604651f</SecurityRole_ID> <TypeMask>None</TypeMask> <Zone_ID>2781bca4-4e72-4e71-9c0c-8238a576097d</Zone_ID> </SecurityRole>