Skip to main content

Notifications API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
sendLocalNotificationPOST /notifications/local/sendSend notification

sendLocalNotification​

sendLocalNotification()

Retrieves a snapshot of all available models.

Example​

import * as Pieces from '@pieces.app/pieces-os-client'

const configuration = Pieces.Configuration()
const apiInstance = new Pieces.NotificationsApi(configuration)

const body: Pieces.SendLocalNotificationRequest = {
// Notification (optional)
notification: ,
};

apiInstance.sendLocalNotification(body).then((data: void (empty response body)) => {
console.log('API called successfully. Returned data: ' + data)
}).catch((error: unknown) => console.error(error))

Parameters​

NameTypeDescriptionNotes
notificationNotification

Return type​

void (empty response body)

HTTP request headers​

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details​

Status codeDescriptionResponse headers
200OK-