POST 17.0/app/keys/createkeyhistory

Description

Creating a new key history record and updating its status.

URI Parameters

None.

The request details.

Name Description Type Additional information
KeyId

integer

None.

SignedOutDate

date

None.

SignedOutUserId

integer

None.

ContactId

integer

None.

ExpectedReturnDate

date

None.

application/json, text/json

Sample:
{
  "keyId": 1,
  "signedOutDate": "2025-10-28T18:04",
  "signedOutUserId": 3,
  "contactId": 4,
  "expectedReturnDate": "2025-10-28T18:04"
}

application/xml, text/xml

Sample:
<KeyHistoryItem xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <KeyId>1</KeyId>
  <SignedOutDate>2025-10-28T18:04:41.4873027+00:00</SignedOutDate>
  <SignedOutUserId>3</SignedOutUserId>
  <ContactId>4</ContactId>
  <ExpectedReturnDate>2025-10-28T18:04:41.4873027+00:00</ExpectedReturnDate>
</KeyHistoryItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

A object containing the ID of the newly created key history entry.

Name Description Type Additional information
Id

integer

None.

application/json, text/json

Sample:
{
  "id": 1
}

application/xml, text/xml

Sample:
<NewRecord xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
</NewRecord>