curl --request PUT \
--url http://localhost:8080/v1/users/me/notifications/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"preferences": [
{
"event_type": "<string>",
"channels": [
"email"
],
"enabled": true,
"config": {}
}
]
}
'{
"data": [
{
"id": "unp_cq1234567890abcdef",
"user_id": "<string>",
"event_type": "<string>",
"channels": [
"email"
],
"config": {},
"enabled": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Bulk-updates notification preferences for the authenticated user.
curl --request PUT \
--url http://localhost:8080/v1/users/me/notifications/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"preferences": [
{
"event_type": "<string>",
"channels": [
"email"
],
"enabled": true,
"config": {}
}
]
}
'{
"data": [
{
"id": "unp_cq1234567890abcdef",
"user_id": "<string>",
"event_type": "<string>",
"channels": [
"email"
],
"config": {},
"enabled": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}