Update user preferences
curl --request PATCH \
--url https://macrobymark.com/api/account/preferences \
--header 'Content-Type: application/json' \
--cookie next-auth.session-token= \
--data '
{
"dashboards": {},
"watchlistAlertPrefs": {},
"watchlistAlertDelivery": {},
"indicatorLibrary": {},
"chartPrefs": {}
}
'import requests
url = "https://macrobymark.com/api/account/preferences"
payload = {
"dashboards": {},
"watchlistAlertPrefs": {},
"watchlistAlertDelivery": {},
"indicatorLibrary": {},
"chartPrefs": {}
}
headers = {
"cookie": "next-auth.session-token=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {cookie: 'next-auth.session-token=', 'Content-Type': 'application/json'},
body: JSON.stringify({
dashboards: {},
watchlistAlertPrefs: {},
watchlistAlertDelivery: {},
indicatorLibrary: {},
chartPrefs: {}
})
};
fetch('https://macrobymark.com/api/account/preferences', 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://macrobymark.com/api/account/preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'dashboards' => [
],
'watchlistAlertPrefs' => [
],
'watchlistAlertDelivery' => [
],
'indicatorLibrary' => [
],
'chartPrefs' => [
]
]),
CURLOPT_COOKIE => "next-auth.session-token=",
CURLOPT_HTTPHEADER => [
"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://macrobymark.com/api/account/preferences"
payload := strings.NewReader("{\n \"dashboards\": {},\n \"watchlistAlertPrefs\": {},\n \"watchlistAlertDelivery\": {},\n \"indicatorLibrary\": {},\n \"chartPrefs\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("cookie", "next-auth.session-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.patch("https://macrobymark.com/api/account/preferences")
.header("cookie", "next-auth.session-token=")
.header("Content-Type", "application/json")
.body("{\n \"dashboards\": {},\n \"watchlistAlertPrefs\": {},\n \"watchlistAlertDelivery\": {},\n \"indicatorLibrary\": {},\n \"chartPrefs\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://macrobymark.com/api/account/preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["cookie"] = 'next-auth.session-token='
request["Content-Type"] = 'application/json'
request.body = "{\n \"dashboards\": {},\n \"watchlistAlertPrefs\": {},\n \"watchlistAlertDelivery\": {},\n \"indicatorLibrary\": {},\n \"chartPrefs\": {}\n}"
response = http.request(request)
puts response.read_bodyAccount
Update Preferences
Update user preferences.
PATCH
/
api
/
account
/
preferences
Update user preferences
curl --request PATCH \
--url https://macrobymark.com/api/account/preferences \
--header 'Content-Type: application/json' \
--cookie next-auth.session-token= \
--data '
{
"dashboards": {},
"watchlistAlertPrefs": {},
"watchlistAlertDelivery": {},
"indicatorLibrary": {},
"chartPrefs": {}
}
'import requests
url = "https://macrobymark.com/api/account/preferences"
payload = {
"dashboards": {},
"watchlistAlertPrefs": {},
"watchlistAlertDelivery": {},
"indicatorLibrary": {},
"chartPrefs": {}
}
headers = {
"cookie": "next-auth.session-token=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {cookie: 'next-auth.session-token=', 'Content-Type': 'application/json'},
body: JSON.stringify({
dashboards: {},
watchlistAlertPrefs: {},
watchlistAlertDelivery: {},
indicatorLibrary: {},
chartPrefs: {}
})
};
fetch('https://macrobymark.com/api/account/preferences', 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://macrobymark.com/api/account/preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'dashboards' => [
],
'watchlistAlertPrefs' => [
],
'watchlistAlertDelivery' => [
],
'indicatorLibrary' => [
],
'chartPrefs' => [
]
]),
CURLOPT_COOKIE => "next-auth.session-token=",
CURLOPT_HTTPHEADER => [
"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://macrobymark.com/api/account/preferences"
payload := strings.NewReader("{\n \"dashboards\": {},\n \"watchlistAlertPrefs\": {},\n \"watchlistAlertDelivery\": {},\n \"indicatorLibrary\": {},\n \"chartPrefs\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("cookie", "next-auth.session-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.patch("https://macrobymark.com/api/account/preferences")
.header("cookie", "next-auth.session-token=")
.header("Content-Type", "application/json")
.body("{\n \"dashboards\": {},\n \"watchlistAlertPrefs\": {},\n \"watchlistAlertDelivery\": {},\n \"indicatorLibrary\": {},\n \"chartPrefs\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://macrobymark.com/api/account/preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["cookie"] = 'next-auth.session-token='
request["Content-Type"] = 'application/json'
request.body = "{\n \"dashboards\": {},\n \"watchlistAlertPrefs\": {},\n \"watchlistAlertDelivery\": {},\n \"indicatorLibrary\": {},\n \"chartPrefs\": {}\n}"
response = http.request(request)
puts response.read_body