API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola

PUT /v1/notification-preferences

PUT/v1/notification-preferences

Upsert the current user’s notification preferences

Cuerpo de la solicitud

NombreTipoDescripción
preferencesobligatorioobject
crossTenantNotificationsboolean

Ejemplo

curl -X PUT https://api.codemeta-os.de/v1/notification-preferences \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "preferences": null,
  "crossTenantNotifications": false
}'
const result = await cm.notification-preferences.put({
  "preferences": null,
  "crossTenantNotifications": false
});

Códigos de respuesta

HTTP Significado
200 Default Response

Búsqueda