No description available.
Input
Encoding
application/jsonendpoint
stringuri
Required
HTTPS endpoint on a supported browser push service.
maxLength: 2048 byteskeys
ref#subscriptionKeys
Required
No description available.
userAgent
string
Optional
No description available.
maxLength: 512 bytesOutput
Encoding
application/jsonregistered
boolean
Required
No description available.
Errors
PushUnavailable
Web Push is not configured. SubscriptionConflict
The endpoint belongs to another member. ConsentRequired
The authenticated member must accept Terms and Privacy Policy and confirm age. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"errors": [
{
"description": "Web Push is not configured.",
"name": "PushUnavailable"
},
{
"description": "The endpoint belongs to another member.",
"name": "SubscriptionConflict"
},
{
"description": "The authenticated member must accept Terms and Privacy Policy and confirm age.",
"name": "ConsentRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"endpoint": {
"description": "HTTPS endpoint on a supported browser push service.",
"format": "uri",
"maxLength": 2048,
"type": "string"
},
"keys": {
"ref": "#subscriptionKeys",
"type": "ref"
},
"userAgent": {
"maxLength": 512,
"type": "string"
}
},
"required": [
"endpoint",
"keys"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"registered": {
"const": true,
"type": "boolean"
}
},
"required": [
"registered"
],
"type": "object"
}
},
"type": "procedure"
}