Skip to main content
PUT
/
v1
/
notifications
/
preferences
/
reminders
Update Reminder Preferences
curl --request PUT \
  --url https://api.mixpeek.com/v1/notifications/preferences/reminders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true,
  "onboarding_nudges": true,
  "engagement_reminders": true,
  "feature_tips": true,
  "quiet_hours_start": 123,
  "quiet_hours_end": 123
}
'
import requests

url = "https://api.mixpeek.com/v1/notifications/preferences/reminders"

payload = {
"enabled": True,
"onboarding_nudges": True,
"engagement_reminders": True,
"feature_tips": True,
"quiet_hours_start": 123,
"quiet_hours_end": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
onboarding_nudges: true,
engagement_reminders: true,
feature_tips: true,
quiet_hours_start: 123,
quiet_hours_end: 123
})
};

fetch('https://api.mixpeek.com/v1/notifications/preferences/reminders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mixpeek.com/v1/notifications/preferences/reminders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'onboarding_nudges' => true,
'engagement_reminders' => true,
'feature_tips' => true,
'quiet_hours_start' => 123,
'quiet_hours_end' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.mixpeek.com/v1/notifications/preferences/reminders"

payload := strings.NewReader("{\n \"enabled\": true,\n \"onboarding_nudges\": true,\n \"engagement_reminders\": true,\n \"feature_tips\": true,\n \"quiet_hours_start\": 123,\n \"quiet_hours_end\": 123\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://api.mixpeek.com/v1/notifications/preferences/reminders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"onboarding_nudges\": true,\n \"engagement_reminders\": true,\n \"feature_tips\": true,\n \"quiet_hours_start\": 123,\n \"quiet_hours_end\": 123\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.mixpeek.com/v1/notifications/preferences/reminders")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"onboarding_nudges\": true,\n \"engagement_reminders\": true,\n \"feature_tips\": true,\n \"quiet_hours_start\": 123,\n \"quiet_hours_end\": 123\n}"

response = http.request(request)
puts response.read_body
{
  "reminders": {
    "enabled": true,
    "onboarding_nudges": true,
    "engagement_reminders": true,
    "feature_tips": true,
    "quiet_hours_start": 123,
    "quiet_hours_end": 123
  }
}
{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}
{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}
{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}
{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
{
"status": 123,
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": {}
},
"success": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request model for updating reminder preferences.

enabled
boolean | null

Master toggle for all reminders

onboarding_nudges
boolean | null

Enable/disable onboarding nudges

engagement_reminders
boolean | null

Enable/disable engagement reminders

feature_tips
boolean | null

Enable/disable feature tips

quiet_hours_start
integer | null

Hour (0-23) to start quiet period (UTC)

quiet_hours_end
integer | null

Hour (0-23) to end quiet period (UTC)

Response

Successful Response

Response model for reminder preferences.

reminders
ReminderPreferences · object
required

Reminder/nudge email preferences