Push API

9. Perform optout

DELETE /notifications/optout

Request

Headers

Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
X-Synapse-Data: {"account":{"id":"fe598296-ab8a-49a2-a874-a4edeca0642e","role_key":"root"}}
Host: example.org
Cookie: 

Route

DELETE /notifications/optout

Body

{
  "data": {
    "id": "c600859a-929d-4f89-a59d-f724aa7c2011",
    "type": "optouts"
  }
}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/vnd.api+json
Cache-Control: no-cache
X-Request-Id: f2105a25-45b6-4503-bfe5-3c332e661050
X-Runtime: 0.011551
Content-Length: 0

Status

202 Accepted