Developers API reference Me Change notification settings
Change notification settings PUT /me/notification-settings
PUT /me/notification-settingsTry it Base https://api.mockflow.com/v1Scopes user:read
Request
curl https://api.mockflow.com/v1/me/notification-settings \
-X PUT \
-H "Authorization: Bearer $MOCKFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email" : true
}'
const response = await fetch("https://api.mockflow.com/v1/me/notification-settings" , {
method: "PUT" ,
headers: {
Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}` ,
"Content-Type" : "application/json"
},
body: JSON.stringify({
"email" : true
})
});
const data = await response.json();
import os, requests
response = requests.put(
"https://api.mockflow.com/v1/me/notification-settings" ,
headers={"Authorization" : f"Bearer {os.environ['MOCKFLOW_API_KEY']}" },
json={
"email" : True
},
)
response.raise_for_status()
data = response.json()
Response
{
"error" : {
"code" : "rate_limited" ,
"message" : "Too many requests." ,
"docsUrl" : "https://mockflow.com/developers/concepts/errors#rate_limited"
},
"requestId" : "req_45d49816999bac40"
}
Authorization
Authorizationstring header required
Bearer <key>. The key needs user:read scope. Create and manage keys in the developer console , or use an OAuth app to act for other people; what each scope unlocks is on the scopes page .
Response 200 · application/json
emailboolean
Whether the workspace receives notification emails. One switch per workspace, as in the account page.
Was this page helpful? Yes No PreviousNotification settings Next My notifications