curl --request PUT \
--url http://localhost:3000/v1/notifications/staff/{staffId}/preferences \
--header 'Content-Type: application/json' \
--data '
{
"order_received": true,
"customer_arrived": true,
"task_assigned": true,
"sweep_arrived": true,
"shift_starting": true,
"schedule_posted": true,
"partner_brand_application": true,
"partner_product_application": true,
"email_enabled": true,
"quiet_hours_enabled": true,
"quiet_hours_start": "<string>",
"quiet_hours_end": "<string>",
"suppress_while_in_app": true
}
'{
"success": true,
"preferences": {
"staff_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_received": true,
"customer_arrived": true,
"task_assigned": true,
"sweep_arrived": true,
"shift_starting": true,
"schedule_posted": true,
"partner_brand_application": true,
"partner_product_application": true,
"email_enabled": true,
"quiet_hours_enabled": true,
"quiet_hours_start": "<string>",
"quiet_hours_end": "<string>",
"suppress_while_in_app": true
}
}Updates notification preferences for a staff member.
curl --request PUT \
--url http://localhost:3000/v1/notifications/staff/{staffId}/preferences \
--header 'Content-Type: application/json' \
--data '
{
"order_received": true,
"customer_arrived": true,
"task_assigned": true,
"sweep_arrived": true,
"shift_starting": true,
"schedule_posted": true,
"partner_brand_application": true,
"partner_product_application": true,
"email_enabled": true,
"quiet_hours_enabled": true,
"quiet_hours_start": "<string>",
"quiet_hours_end": "<string>",
"suppress_while_in_app": true
}
'{
"success": true,
"preferences": {
"staff_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_received": true,
"customer_arrived": true,
"task_assigned": true,
"sweep_arrived": true,
"shift_starting": true,
"schedule_posted": true,
"partner_brand_application": true,
"partner_product_application": true,
"email_enabled": true,
"quiet_hours_enabled": true,
"quiet_hours_start": "<string>",
"quiet_hours_end": "<string>",
"suppress_while_in_app": true
}
}