Re-issue the theme cookie.
POST
/api/dashboard/theme-cookie
const url = 'https://api.tradr.cloud/api/dashboard/theme-cookie';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.tradr.cloud/api/dashboard/theme-cookieAuthed. Sets tradr_theme from the stored preference without changing it. Used to restore the cookie on a new device or after it is cleared, so the first paint matches the saved theme. The request body must be empty.
Responses
Section titled “Responses”The cookie is set.
The request body was not empty.