saarah
Adept
Joined 8 years ago
Joined 8 years ago
Ohh you are using it in js. It would not be possible to use restadmin in js. In this scenario, you have to make a call to the endpoint. Where you can use the restadmin call like this
<#assign subscribe = restadmin("/boards/id/${board_id}/subscriptions/users/self/add?subscription.type=email") />