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": "43c85487-a4c1-47a4-977f-fd678c9d7a78", "Description": "sample string 1", "ExpireDate": "2025-09-14T09:57:51.3885765+03:00", "InfoText": "sample string 2", "ManufacturingInfo": "sample string 3", "OnlineAccessCode": "sample string 4", "Person_ID": "c961e055-9ea0-42bf-88af-243e41ebc2f9", "RealEstate_ID": "cb6546fc-ee29-4d26-9bc5-92074157fcd0", "ROM_ID": "sample string 6", "Stamp": "sample string 7", "TagKey": "sample string 8", "VersionCode": "sample string 9" }, "SecurityAccessIds": [ "6e906a3d-9b28-4b56-8cd3-e7b0d4ad09b0", "fa6d1346-5343-40e7-9fbc-7ffd06415664" ], "TimeLimits": [ { "DaylightSaving": 1, "EndDate": "2025-09-14T09:57:51.3885765+03:00", "LimitType": 2, "LNKey_ID": "1a736fd7-6126-4010-943c-3c0f056824e3", "LNKeyTimeLimit_ID": "9decda45-f81d-4107-9a55-3c997608617b", "OrderNo": 5, "RenewEndDate": "2025-09-14T09:57:51.3885765+03:00", "RenewGapCount": 7, "RenewGapType": 8, "RenewMinute": 9, "StartDate": "2025-09-14T09:57:51.3885765+03:00", "WeekDay": 10 }, { "DaylightSaving": 1, "EndDate": "2025-09-14T09:57:51.3885765+03:00", "LimitType": 2, "LNKey_ID": "1a736fd7-6126-4010-943c-3c0f056824e3", "LNKeyTimeLimit_ID": "9decda45-f81d-4107-9a55-3c997608617b", "OrderNo": 5, "RenewEndDate": "2025-09-14T09:57:51.3885765+03:00", "RenewGapCount": 7, "RenewGapType": 8, "RenewMinute": 9, "StartDate": "2025-09-14T09:57:51.3885765+03:00", "WeekDay": 10 } ], "ZoneIds": [ "3edd28ea-5d3a-4a02-a0b4-bb9b4355805c", "4bb5ce89-446a-4860-970a-59928b626a4d" ] }
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-09-14T09:57:51.3885765+03:00</d2p1:ExpireDate> <d2p1:FNKey_ID>43c85487-a4c1-47a4-977f-fd678c9d7a78</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>c961e055-9ea0-42bf-88af-243e41ebc2f9</d2p1:Person_ID> <d2p1:ROM_ID>sample string 6</d2p1:ROM_ID> <d2p1:RealEstate_ID>cb6546fc-ee29-4d26-9bc5-92074157fcd0</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>6e906a3d-9b28-4b56-8cd3-e7b0d4ad09b0</d2p1:guid> <d2p1:guid>fa6d1346-5343-40e7-9fbc-7ffd06415664</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-09-14T09:57:51.3885765+03:00</d2p1:EndDate> <d2p1:LNKeyTimeLimit_ID>9decda45-f81d-4107-9a55-3c997608617b</d2p1:LNKeyTimeLimit_ID> <d2p1:LNKey_ID>1a736fd7-6126-4010-943c-3c0f056824e3</d2p1:LNKey_ID> <d2p1:LimitType>2</d2p1:LimitType> <d2p1:OrderNo>5</d2p1:OrderNo> <d2p1:RenewEndDate>2025-09-14T09:57:51.3885765+03:00</d2p1:RenewEndDate> <d2p1:RenewGapCount>7</d2p1:RenewGapCount> <d2p1:RenewGapType>8</d2p1:RenewGapType> <d2p1:RenewMinute>9</d2p1:RenewMinute> <d2p1:StartDate>2025-09-14T09:57:51.3885765+03:00</d2p1:StartDate> <d2p1:WeekDay>10</d2p1:WeekDay> </d2p1:KeyTimeLimit> <d2p1:KeyTimeLimit> <d2p1:DaylightSaving>1</d2p1:DaylightSaving> <d2p1:EndDate>2025-09-14T09:57:51.3885765+03:00</d2p1:EndDate> <d2p1:LNKeyTimeLimit_ID>9decda45-f81d-4107-9a55-3c997608617b</d2p1:LNKeyTimeLimit_ID> <d2p1:LNKey_ID>1a736fd7-6126-4010-943c-3c0f056824e3</d2p1:LNKey_ID> <d2p1:LimitType>2</d2p1:LimitType> <d2p1:OrderNo>5</d2p1:OrderNo> <d2p1:RenewEndDate>2025-09-14T09:57:51.3885765+03:00</d2p1:RenewEndDate> <d2p1:RenewGapCount>7</d2p1:RenewGapCount> <d2p1:RenewGapType>8</d2p1:RenewGapType> <d2p1:RenewMinute>9</d2p1:RenewMinute> <d2p1:StartDate>2025-09-14T09:57:51.3885765+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>3edd28ea-5d3a-4a02-a0b4-bb9b4355805c</d2p1:guid> <d2p1:guid>4bb5ce89-446a-4860-970a-59928b626a4d</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": "2f5f4f05-b971-4615-b289-fefa81ecc69a", "ROM_ID": "sample string 2", "Description": "sample string 3", "ExpireDate": "2025-09-14T09:57:51.4042004+03:00", "InfoText": "sample string 4", "Person_ID": "95c15651-2046-4fac-8a2d-43459144761f", "RealEstate_ID": "fcacf752-17f5-4650-8dd7-0fc2b00466fe", "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-09-14T09:57:51.4042004+03:00</ExpireDate> <FNKey_ID>2f5f4f05-b971-4615-b289-fefa81ecc69a</FNKey_ID> <InfoText>sample string 4</InfoText> <Person_ID>95c15651-2046-4fac-8a2d-43459144761f</Person_ID> <ROM_ID>sample string 2</ROM_ID> <RealEstate_ID>fcacf752-17f5-4650-8dd7-0fc2b00466fe</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>