Update webhook
Changed onEdit webhook event types and/or url.
When updating webhook url the AccessLink sends a ping message to the new address. The ping message must be answered with 200 OK or otherwise the webhook is not updated.
Request
- Base URLhttps://www.polaraccesslink.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Webhook id to update
Request body
Example request
{
"events": [
"EXERCISE"
],
"url": "https://myapp.example.com/acl_webhook"
}Response
Webhook updated successfully.
Example response
{
"data": [
{
"id": "abdf33",
"events": [
"EXERCISE"
],
"url": "https://myapp.example.com/acl_webhook",
"active": true
}
]
}Changes
- breaking
removed the enum value
EXERCISESLEEPCONTINUOUS_HEART_RATESLEEP_WISE_CIRCADIAN_BEDTIMESLEEP_WISE_ALERTNESSACTIVITY_SUMMARYof the request property/ - warning
added the new
ACTIVITY_SUMMARYenum value to the///response property for the response status - warning
added the new
CONTINUOUS_HEART_RATEenum value to the///response property for the response status - warning
added the new
EXERCISEenum value to the///response property for the response status - warning
added the new
PHYSICAL_INFORMATIONenum value to the///response property for the response status - warning
added the new
SLEEPenum value to the///response property for the response status - warning
added the new
SLEEP_WISE_ALERTNESSenum value to the///response property for the response status - warning
added the new
SLEEP_WISE_CIRCADIAN_BEDTIMEenum value to the///response property for the response status - info
added the new
ACTIVITY_SUMMARYenum value to the request property/ - info
added the new
CONTINUOUS_HEART_RATEenum value to the request property/ - info
added the new
EXERCISEenum value to the request property/ - info
added the new
PHYSICAL_INFORMATIONenum value to the request property/ - info
added the new
SLEEPenum value to the request property/ - info
added the new
SLEEP_WISE_ALERTNESSenum value to the request property/ - info
added the new
SLEEP_WISE_CIRCADIAN_BEDTIMEenum value to the request property/ - info
removed the
EXERCISESLEEPCONTINUOUS_HEART_RATESLEEP_WISE_CIRCADIAN_BEDTIMESLEEP_WISE_ALERTNESSACTIVITY_SUMMARYenum value from the///response property for the response status
- breaking
- breaking
removed the enum value
EXERCISESLEEPCONTINUOUS_HEART_RATESLEEP_WISE_CIRCADIAN_BEDTIMESLEEP_WISE_ALERTNESSof the request property/ - warning
added the new
EXERCISESLEEPCONTINUOUS_HEART_RATESLEEP_WISE_CIRCADIAN_BEDTIMESLEEP_WISE_ALERTNESSACTIVITY_SUMMARYenum value to the///response property for the response status - info
added the new
EXERCISESLEEPCONTINUOUS_HEART_RATESLEEP_WISE_CIRCADIAN_BEDTIMESLEEP_WISE_ALERTNESSACTIVITY_SUMMARYenum value to the request property/ - info
removed the
EXERCISESLEEPCONTINUOUS_HEART_RATESLEEP_WISE_CIRCADIAN_BEDTIMESLEEP_WISE_ALERTNESSenum value from the///response property for the response status
- breaking