Skip to content

PushSubscription

Capability: urn:ietf:params:jmap:core

Arguments

PropertyTypeRequiredDescription
idsarray?NoPushSubscription ids to fetch. If null, returns every subscription of the calling credential.
propertiesarray?NoPushSubscription properties to return. Null returns every property except url and keys.

Response

PropertyTypeRequiredDescription
listPushSubscription[]YesThe requested PushSubscription objects of the calling credential.
notFoundarray?NoIds that were not found, including ids of other credentials and expired subscriptions.

Capability: urn:ietf:params:jmap:core

Arguments

PropertyTypeRequiredDescription
createobject?NoMap of creation id to PushSubscriptionCreate objects.
updateobject?NoMap of PushSubscription id to PushSubscriptionUpdate patch objects.
destroyarray?NoPushSubscription ids to destroy.

Response

PropertyTypeRequiredDescription
createdobject?NoMap of creation id to the server-set id and expires of each created PushSubscription.
updatedobject?NoMap of successfully updated PushSubscription id to its server-side changes: {expires} when the server changed expires, otherwise null.
destroyedanyNoPushSubscription ids that were successfully destroyed.
notCreatedobject?NoCreation ids that failed, with a SetError.
notUpdatedobject?NoPushSubscription ids that failed to update, with a SetError.
notDestroyedobject?NoPushSubscription ids that failed to destroy, with a SetError.