Searching:
0 results foundReports/[id]/unsubscribe
POST /odata/Reports/[id]/unsubscribe
Description
Unsubscribes the specified Users(s) from automatically receiving the Axonize reports (as specified by the report id(s) in the request) by email. The ID of a report is returned in the response to the Reports/Post and Reports/Get endpoints.
See the following for request and response details ‒
See Also
Request ‒ Reports/[id]/unsubscribe
Property | Type | Description | Mandatory |
id | String | This is the unique identifier automatically assigned by Axonize when a Report is created. This id is returned in the response of the Reports/Post. | Y |
userId | String | An array of user Ids to unsubscribe from the specified report. User Ids are returned in the Users/Post response. |
Example JSON Reports/[id]/unsubscribe Request
curl -X POST \
https://api.stg.axonize.com/odata/reports/5b682f64e5cdcf20a87788d8/unsubscribe/\
-H ‘Content-Type: application/json’ \
-H ‘Authorization: Token’ \
-H ‘appId: be517433-c4b8-4748-9258-1b1234567890’ \
-d ‘{“subscriber”:{“userId”:”59312b3cc9f8be1112345678″}}’
Response ‒ Reports/[id]/unsubscribe
All the same properties in the request are returned in the response.
Example JSON Reports/[id]/unsubscribe Response
Status 200 – OK