PushSubscription
PushSubscription/get
Section titled “PushSubscription/get”Capability: urn:ietf:params:jmap:core
Arguments
| Property | Type | Required | Description |
|---|---|---|---|
ids | array? | No | PushSubscription ids to fetch. If null, returns every subscription of the calling credential. |
properties | array? | No | PushSubscription properties to return. Null returns every property except url and keys. |
Response
| Property | Type | Required | Description |
|---|---|---|---|
list | PushSubscription[] | Yes | The requested PushSubscription objects of the calling credential. |
notFound | array? | No | Ids that were not found, including ids of other credentials and expired subscriptions. |
PushSubscription/set
Section titled “PushSubscription/set”Capability: urn:ietf:params:jmap:core
Arguments
| Property | Type | Required | Description |
|---|---|---|---|
create | object? | No | Map of creation id to PushSubscriptionCreate objects. |
update | object? | No | Map of PushSubscription id to PushSubscriptionUpdate patch objects. |
destroy | array? | No | PushSubscription ids to destroy. |
Response
| Property | Type | Required | Description |
|---|---|---|---|
created | object? | No | Map of creation id to the server-set id and expires of each created PushSubscription. |
updated | object? | No | Map of successfully updated PushSubscription id to its server-side changes: {expires} when the server changed expires, otherwise null. |
destroyed | any | No | PushSubscription ids that were successfully destroyed. |
notCreated | object? | No | Creation ids that failed, with a SetError. |
notUpdated | object? | No | PushSubscription ids that failed to update, with a SetError. |
notDestroyed | object? | No | PushSubscription ids that failed to destroy, with a SetError. |