postApiV1NotificationsDevices
postApiV1NotificationsDevices<
ThrowOnError>(options:Options<PostApiV1NotificationsDevicesData,ThrowOnError>):RequestResult<PostApiV1NotificationsDevicesResponses,PostApiV1NotificationsDevicesErrors,ThrowOnError>
Defined in: src/client/sdk.gen.ts:1197
Register push-notification device
Stores an Expo push token so the portal can later deliver push notifications to this device. Idempotent — re-posting the same token refreshes the row and bumps its last-seen timestamp. A token previously registered by a different account is reassigned to the caller (an Expo token identifies a physical device). Accounts keep at most 10 devices; the least recently seen are evicted.
Type Parameters
| Type Parameter | Default type |
|---|---|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
RequestResult<PostApiV1NotificationsDevicesResponses, PostApiV1NotificationsDevicesErrors, ThrowOnError>