跳转到主要内容
POST
/
unsubscribe
/
{token}
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/unsubscribe/{token} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subscriptionStatus": true
}
'
true

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

token
string
required

Body

application/json
subscriptionStatus
boolean
required

Response

200 - application/json

Successful response

The response is of type boolean.