For accessing and modifying the user's preferences
Should NOT be used for rendering because it might not match the page! Can be used for theme switching and testing.
This request has no parameters.
OK
1
2
3
curl --request GET \
--url 'http://example.com/rest/atlassian-theme/1/user-preferences' \
--header 'Accept: application/json'
1
2
3
4
5
{
"Color mode": {},
"Dark theme key": {},
"Light theme key": {}
}
Updates individual preferences for the user with what is provided
string
string
string
OK - Everything was updated
1
2
3
4
5
6
7
8
9
curl --request POST \
--url 'http://example.com/rest/atlassian-theme/1/user-preferences' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"Color mode": {},
"Dark theme key": {},
"Light theme key": {}
}'
1
2
3
4
5
{
"Color mode": {},
"Dark theme key": {},
"Light theme key": {}
}
Rate this page: