POST api/v1/Keys
Adds new key
Request Information
URI Parameters
None.
Body Parameters
Parameter
InsertKeyParamName | Description | Type | Additional information |
---|---|---|---|
Key |
Key information |
KeyInsert |
None. |
SecurityAccessIds |
Security accesses which should be linked to the new key |
Collection of globally unique identifier |
None. |
TimeLimits |
Time limit information for the new key |
Collection of KeyTimeLimit |
None. |
ZoneIds |
Zones the new key belongs to |
Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
{ "Key": { "FNKey_ID": "5a27a051-c436-415e-94e3-c7ae0ebb1d00", "Description": "sample string 1", "ExpireDate": "2025-07-06T20:19:33.4546706+03:00", "InfoText": "sample string 2", "ManufacturingInfo": "sample string 3", "OnlineAccessCode": "sample string 4", "Person_ID": "697c1b59-b918-4a60-9d26-ba9a750c0b5d", "RealEstate_ID": "f39b5f3a-084c-4730-9895-93f6b28a5621", "ROM_ID": "sample string 6", "Stamp": "sample string 7", "TagKey": "sample string 8", "VersionCode": "sample string 9" }, "SecurityAccessIds": [ "371c7398-f939-404f-b93a-feeb03a826c9", "82cac363-212e-438f-a350-9f32d7f2e7cb" ], "TimeLimits": [ { "DaylightSaving": 1, "EndDate": "2025-07-06T20:19:33.4546706+03:00", "LimitType": 2, "LNKey_ID": "7ef055c5-967e-46b2-96c1-5455cac16f63", "LNKeyTimeLimit_ID": "c8821fe3-3662-452b-a2b6-c7211cb2b186", "OrderNo": 5, "RenewEndDate": "2025-07-06T20:19:33.4546706+03:00", "RenewGapCount": 7, "RenewGapType": 8, "RenewMinute": 9, "StartDate": "2025-07-06T20:19:33.4546706+03:00", "WeekDay": 10 }, { "DaylightSaving": 1, "EndDate": "2025-07-06T20:19:33.4546706+03:00", "LimitType": 2, "LNKey_ID": "7ef055c5-967e-46b2-96c1-5455cac16f63", "LNKeyTimeLimit_ID": "c8821fe3-3662-452b-a2b6-c7211cb2b186", "OrderNo": 5, "RenewEndDate": "2025-07-06T20:19:33.4546706+03:00", "RenewGapCount": 7, "RenewGapType": 8, "RenewMinute": 9, "StartDate": "2025-07-06T20:19:33.4546706+03:00", "WeekDay": 10 } ], "ZoneIds": [ "a7b44a3b-4e9a-4b0e-92b0-b4433885f8dc", "f4109b3c-f4fb-47db-8912-8311bd10f3b1" ] }
application/xml, text/xml
<KeyParams.InsertKeyParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iloq.manager.server.ws.WebApi.Params"> <Key xmlns:d2p1="http://schemas.datacontract.org/2004/07/iloq.manager.server.bus"> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:ExpireDate>2025-07-06T20:19:33.4546706+03:00</d2p1:ExpireDate> <d2p1:FNKey_ID>5a27a051-c436-415e-94e3-c7ae0ebb1d00</d2p1:FNKey_ID> <d2p1:InfoText>sample string 2</d2p1:InfoText> <d2p1:ManufacturingInfo>sample string 3</d2p1:ManufacturingInfo> <d2p1:OnlineAccessCode>sample string 4</d2p1:OnlineAccessCode> <d2p1:Person_ID>697c1b59-b918-4a60-9d26-ba9a750c0b5d</d2p1:Person_ID> <d2p1:ROM_ID>sample string 6</d2p1:ROM_ID> <d2p1:RealEstate_ID>f39b5f3a-084c-4730-9895-93f6b28a5621</d2p1:RealEstate_ID> <d2p1:Stamp>sample string 7</d2p1:Stamp> <d2p1:TagKey>sample string 8</d2p1:TagKey> <d2p1:VersionCode>sample string 9</d2p1:VersionCode> </Key> <SecurityAccessIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>371c7398-f939-404f-b93a-feeb03a826c9</d2p1:guid> <d2p1:guid>82cac363-212e-438f-a350-9f32d7f2e7cb</d2p1:guid> </SecurityAccessIds> <TimeLimits xmlns:d2p1="http://schemas.datacontract.org/2004/07/iloq.manager.server.bus"> <d2p1:KeyTimeLimit> <d2p1:DaylightSaving>1</d2p1:DaylightSaving> <d2p1:EndDate>2025-07-06T20:19:33.4546706+03:00</d2p1:EndDate> <d2p1:LNKeyTimeLimit_ID>c8821fe3-3662-452b-a2b6-c7211cb2b186</d2p1:LNKeyTimeLimit_ID> <d2p1:LNKey_ID>7ef055c5-967e-46b2-96c1-5455cac16f63</d2p1:LNKey_ID> <d2p1:LimitType>2</d2p1:LimitType> <d2p1:OrderNo>5</d2p1:OrderNo> <d2p1:RenewEndDate>2025-07-06T20:19:33.4546706+03:00</d2p1:RenewEndDate> <d2p1:RenewGapCount>7</d2p1:RenewGapCount> <d2p1:RenewGapType>8</d2p1:RenewGapType> <d2p1:RenewMinute>9</d2p1:RenewMinute> <d2p1:StartDate>2025-07-06T20:19:33.4546706+03:00</d2p1:StartDate> <d2p1:WeekDay>10</d2p1:WeekDay> </d2p1:KeyTimeLimit> <d2p1:KeyTimeLimit> <d2p1:DaylightSaving>1</d2p1:DaylightSaving> <d2p1:EndDate>2025-07-06T20:19:33.4546706+03:00</d2p1:EndDate> <d2p1:LNKeyTimeLimit_ID>c8821fe3-3662-452b-a2b6-c7211cb2b186</d2p1:LNKeyTimeLimit_ID> <d2p1:LNKey_ID>7ef055c5-967e-46b2-96c1-5455cac16f63</d2p1:LNKey_ID> <d2p1:LimitType>2</d2p1:LimitType> <d2p1:OrderNo>5</d2p1:OrderNo> <d2p1:RenewEndDate>2025-07-06T20:19:33.4546706+03:00</d2p1:RenewEndDate> <d2p1:RenewGapCount>7</d2p1:RenewGapCount> <d2p1:RenewGapType>8</d2p1:RenewGapType> <d2p1:RenewMinute>9</d2p1:RenewMinute> <d2p1:StartDate>2025-07-06T20:19:33.4546706+03:00</d2p1:StartDate> <d2p1:WeekDay>10</d2p1:WeekDay> </d2p1:KeyTimeLimit> </TimeLimits> <ZoneIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>a7b44a3b-4e9a-4b0e-92b0-b4433885f8dc</d2p1:guid> <d2p1:guid>f4109b3c-f4fb-47db-8912-8311bd10f3b1</d2p1:guid> </ZoneIds> </KeyParams.InsertKeyParam>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
KeyName | Description | Type | Additional information |
---|---|---|---|
FNKey_ID |
Key Id |
globally unique identifier |
None. |
ROM_ID |
ROM ID |
string |
None. |
Description |
Description text |
string |
None. |
ExpireDate |
Expiration date. Null if the key doesn't expire. |
date (nullable) |
None. |
InfoText |
Additional info text |
string |
None. |
Person_ID |
Person to whom the key is linked to. Null if the key isn't linked to anyone. |
globally unique identifier (nullable) |
None. |
RealEstate_ID |
ID of the real estate where this key belongs to. |
globally unique identifier |
None. |
Stamp |
Stamp. Number consisting of 4 digits written to the physical key. |
string |
Required String length: inclusive between 0 and 10 |
State |
Current state |
pniFNKeyState |
None. |
TagKey |
TFID Tag. Empty string if not given. |
string |
None. |
StampSource |
The source of the key labeling (Stamp). Read only. |
KeyStampSource |
None. |
TagKeySource |
The source of the key's tagkey enumeration. Read only. |
TagKeySource |
None. |
VersionCode |
Version information. |
string |
None. |
Response Formats
application/json, text/json
{ "FNKey_ID": "05b4f077-7ae4-4d90-8d81-b54ef95bdfeb", "ROM_ID": "sample string 2", "Description": "sample string 3", "ExpireDate": "2025-07-06T20:19:33.4702899+03:00", "InfoText": "sample string 4", "Person_ID": "8ce946ab-6173-4a67-8608-7e128dc983ce", "RealEstate_ID": "a7ae8643-b140-4944-bb76-f0e4f24cdcf8", "Stamp": "sample string 6", "State": 7, "TagKey": "sample string 8", "StampSource": 9, "TagKeySource": 10, "VersionCode": "sample string 11" }
application/xml, text/xml
<Key xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iloq.manager.server.bus"> <Description>sample string 3</Description> <ExpireDate>2025-07-06T20:19:33.4702899+03:00</ExpireDate> <FNKey_ID>05b4f077-7ae4-4d90-8d81-b54ef95bdfeb</FNKey_ID> <InfoText>sample string 4</InfoText> <Person_ID>8ce946ab-6173-4a67-8608-7e128dc983ce</Person_ID> <ROM_ID>sample string 2</ROM_ID> <RealEstate_ID>a7ae8643-b140-4944-bb76-f0e4f24cdcf8</RealEstate_ID> <Stamp>sample string 6</Stamp> <StampSource>9</StampSource> <State>7</State> <TagKey>sample string 8</TagKey> <TagKeySource>10</TagKeySource> <VersionCode>sample string 11</VersionCode> </Key>