Skip to main content
PUT
/
v1
/
admin
/
notifications
/
staff
/
{staffId}
/
preferences
Update staff notification preferences
curl --request PUT \
  --url http://localhost:3000/v1/admin/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
  }
}

Path Parameters

staffId
string<uuid>
required

Body

application/json
order_received
boolean
customer_arrived
boolean
task_assigned
boolean
sweep_arrived
boolean
shift_starting
boolean
schedule_posted
boolean
partner_brand_application
boolean
partner_product_application
boolean
email_enabled
boolean
quiet_hours_enabled
boolean
quiet_hours_start
string
quiet_hours_end
string
suppress_while_in_app
boolean

Response

Updated preferences

success
boolean
required
preferences
object
required