Subscribe
POST/v1/notifications/subscription
Subscribe
The subscribe endpoint allows users to create a new notification subscription. It accepts a JSON payload containing the subscription details and the user's device identifier. Upon successful creation, it returns a 201 status code indicating that the subscription has been successfully created. If the subscription already exists, it responds with a 409 status code. Any internal server errors result in a 500 status code. This endpoint is part of the /v1/notifications/subscription path and uses POST method.
Request
- application/json
Body
required
subscription stringrequired
user_device stringrequired
Responses
- 201
- 409
- 500
Subscription created
Subscription already exists
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...