Can not update tapkey grunt. I try to update this tapkey object and got 400 (Bad Request).
{
active: false
boundCard: null
boundCardId: null
boundLock: {
targetType: 'Lock'
id: '...'
clientRef: null
physicalLockId: '...'
title: 'Vorhängeschloss zum Testen'
description: null
},
boundLockId: "..."
clientRef: null
contact: {
email: '...'
ipUserName: '...'
id: '...'
clientRef: null
ownerId: '...'
ipId: "tapkey"
comment: null
isActive: true
title: null
ipUserId: null,
identifier: "..."
}
contactId: "..."
credentialId: null
customPayload: null
id: "..."
keyLifetime: null
mobileDeviceRef: null
owner: null
permissionDetails: null
state: "Expired"
timeRestrictionIcal: null
validBefore: "2023-03-04T23:00:00.000Z"
validFrom: "2023-03-03T23:00:00.000Z"
}
with this new grint object:
{
boundLockId: "..."
contactId: ""
timeRestrictionIcal:
"BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:http://localhost:3000\nBEGIN:VEVENT\nUID:20230301T010000Z5fa30d57-27b3-461f-973e-d46e91f56f86\nDTSTAMP:20230228T230000Z\nDTSTART;TZID=Europe/Berlin:20230303T230000\nDTEND;TZID=Europe/Berlin:20230304T230000\nEND:VEVENT\nBEGIN:VEVENT\nUID:20230502T000000Z5fa30d57-27b3-461f-973e-d46e91f56f86\nDTSTAMP:20230502T000000Z\nDTSTART;TZID=Europe/Berlin:20230505T000000\nDTEND;TZID=Europe/Berlin:20230507T000000\nEND:VEVENT\nEND:VCALENDAR"
validBefore: null
validFrom: null
}
Get error - ErrorMessage: "only one grant allowed per lock and user/card".
I tried to request /api/v1/Owners/{ownerAccountId}/Grants/{id} resource to update tapkey grunt.