Resubscribe to report REST API
POST
/api/reports/{report_id}/resubscribe
const url = 'http://127.0.0.1:25737/api/reports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resubscribe';const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:25737/api/reports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resubscribe \ --cookie hk_token=<hk_token>Clears the current user’s opt-out for this report. Team managers cannot resubscribe another recipient.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”report_id
required
string format: uuid
Report definition UUID.
Responses
Section titled “Responses”Resubscribed
Not found
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}