PUT/v2/shares/{share-id}Update a share

Update a share
headerAuthorizationAuthentication token (bearer token or API key).
{
"startDate" : Local date (ISO 8601, e.g. "2022-06-23"),
"startTime" : Local time (ISO 8601, e.g. "13:53:02"),
"endDate" : Local date (ISO 8601, e.g. "2022-06-23"),
"endTime" : Local time (ISO 8601, e.g. "13:53:02"),
"schedule" : [{
"dayOfWeek" : "Monday" / "Tuesday" / "Wednesday" / "Thursday" / "Friday" / "Saturday" / "Sunday",
"period" : {
"startTime" : Local time (ISO 8601, e.g. "13:53:02"),
"endTime" : Local time (ISO 8601, e.g. "13:53:02")
},
"recurrence" : "Daily" / "Weekly" / "BiWeekly"
}]
,
"permissions" : {
"administrate" : Boolean,
"remoteActivate" : Boolean,
"assignKeyfob" : Boolean
},
"source" : {
"deviceId" : Number,
"deviceGroupId" : Number
},
"receiver" : {
"userId" : Number,
"userGroupId" : Number
},
"personalSettings" : {
"notifications" : Boolean
},
"autoRemoveAfter" : "WEEK" / "MONTH" / "YEAR"
}

Response

status200All ok
status401Invalid authentication token
status403Insufficient rights
status404share not found
{
"shareId" : Number,
"token" : String, UUID 4 formatted (e.g. "a426e157-8a5c-456a-8865-bec6394867ab")
}

Example: Update a share

PUT/v2/shares/1

headerAuthorizationBearer 033f63f2-38be-4b2d-8735-b377c2cc08ff
{
"schedule": [],
"permissions": {
"administrate": true,
"remoteActivate": true,
"assignKeyfob": true
}
,
"personalSettings": {
"notifications": true
}
}

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
{
"shareId": 1
}