Skip to content

ShareNotification

Capability: urn:ietf:params:jmap:principals

Arguments

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account to fetch share notifications from.
idsanyNoIDs of specific share notifications to fetch. Null or omitted to fetch all share notifications.
propertiesanyNoShareNotification properties to include in the response. Null or omitted for all properties.

Response

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account the share notifications belong to.
statestringYesThe current state of the ShareNotification type. Pass to ShareNotification/changes to detect future changes.
listShareNotification[]YesThe list of ShareNotification objects that were found.
notFoundstring[]YesIDs from the request that could not be found.

Capability: urn:ietf:params:jmap:principals

Arguments

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account to apply changes to.
ifInStatestring?NoOptimistic concurrency guard. Fails with stateMismatch if the ShareNotification state differs.
createobject?NoAlways results in notCreated — share notifications are created by the server.
updateobject?NoAlways results in notUpdated — share notifications are immutable.
destroyarray?NoShareNotificationIds to dismiss (destroy).

Response

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account the changes were applied to.
oldStatestring?NoThe ShareNotification state before this set, or null if the server cannot calculate it.
newStatestringYesThe ShareNotification state after this set.
createdobject?NoTypically empty — share notifications are created by the server.
updatedobject?NoTypically empty — share notifications are immutable.
destroyedanyNoShareNotificationIds that were successfully dismissed.
notCreatedobject?NoCreation ids that failed, with a SetError.
notUpdatedobject?NoShareNotificationIds that failed to update, with a SetError.
notDestroyedobject?NoShareNotificationIds that failed to destroy, with a SetError.

Capability: urn:ietf:params:jmap:principals

Arguments

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account to query share notifications from.
sortarray?NoSort criteria. Each Comparator has a property (e.g. created) and optional isAscending (default true).
positionintegerNo0-based index of the first result to return.
anchorShareNotificationIdNoA ShareNotificationId to anchor the result page at.
anchorOffsetintegerNoOffset from the anchor (may be negative).
limitintegerNoMaximum number of ids to return.
calculateTotalbooleanNoIf true, return the total number of share notifications.

Response

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account the query ran against.
queryStatestringYesOpaque state string. Pass to ShareNotification/queryChanges to detect future changes.
canCalculateChangesbooleanYesWhether ShareNotification/queryChanges can be used with this query.
positionintegerYes0-based index of the first id in the ids array.
idsShareNotificationId[]YesThe matching ShareNotificationIds in the requested order.
totalintegerNoTotal number of share notifications. Only present if calculateTotal was true.
limitintegerNoThe limit applied. Only present if a limit was applied.

Capability: urn:ietf:params:jmap:principals

Arguments

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account to check for query changes.
sortarray?NoMust match the sort used in the original ShareNotification/query call.
sinceQueryStatestringYesThe queryState from the previous ShareNotification/query or ShareNotification/queryChanges response.
maxChangesintegerNoMaximum number of changes to return. If exceeded, hasMoreChanges will be true.
upToIdShareNotificationIdNoReturn changes only up to and including this ShareNotificationId.
calculateTotalbooleanNoIf true, return the updated total count of results.

Response

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account these query changes belong to.
oldQueryStatestringYesThe queryState this response starts from (matches sinceQueryState from request).
newQueryStatestringYesThe current queryState. Pass to the next ShareNotification/queryChanges call.
hasMoreChangesbooleanYesIf true, more changes exist beyond maxChanges. Call again with newQueryState.
removedShareNotificationId[]YesShareNotificationIds that are no longer in the query result set.
addedobject[]YesShare notifications that are now in the result set, with their new positions.
totalintegerNoUpdated total count of results (if calculateTotal was true in the original query).

Capability: urn:ietf:params:jmap:principals

Arguments

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account to fetch share notification changes for.
sinceStatestringYesThe state string from the last ShareNotification/get or ShareNotification/changes response.
maxChangesintegerNoMaximum number of change records to return. If exceeded, hasMoreChanges will be true.

Response

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account these share notification changes belong to.
oldStatestringYesThe state this response starts from.
newStatestringYesThe current state after all listed changes; pass to the next call.
hasMoreChangesbooleanYesIf true, additional changes exist beyond maxChanges. Call again with newState.
createdShareNotificationId[]YesIDs of share notifications created since sinceState.
updatedShareNotificationId[]YesIDs of share notifications whose properties changed since sinceState.
destroyedShareNotificationId[]YesIDs of share notifications destroyed since sinceState.