Update user notification preferences
PUT
CoderSessionTokenheader
Coder-Session-Token<token>user*stringUser ID, name, or me
Preferences
application/json- body
template_disabled_map?OK
application/json- response
[index: integer]?The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X PUT \ "$CODER_URL/api/v2/users/{user}/notifications/preferences" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "template_disabled_map": { "property1": true, "property2": true }}'Example Response200
[ { "disabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "updated_at": "2019-08-24T14:15:22Z" }]