Overview
PUT/notifications/preferencesnotifications

Bulk upsert notification preferences across categories

Replace a record in preferences.

Auth: bearerAuth — calls run as the authenticated user.

Request body

application/json · optional

  • preferencesobject[]
Example
{
  "preferences": [
    {
      "category": "account",
      "email": true,
      "sms": true
    }
  ]
}
Responses
200

All preferences (one per category)

  • preferencesNotificationPreference[]
Example
{
  "preferences": [
    {
      "category": "account",
      "email": true,
      "sms": true
    }
  ]
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X PUT "https://api.agenticdeveloperhub.com/notifications/preferences" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "preferences": [
    {
      "category": "account",
      "email": true,
      "sms": true
    }
  ]
}'
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/notifications/preferences", {
  method: "PUT",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  body: "{\n  \"preferences\": [\n    {\n      \"category\": \"account\",\n      \"email\": true,\n      \"sms\": true\n    }\n  ]\n}",
});
const data = await res.json();