• User Preferences
    Server
    Atlassian Theme / Reference / REST API

    User Preferences

    Postman Collection
    OpenAPI

    For accessing and modifying the user's preferences

    GET

    Get theme preferences for the user

    Should NOT be used for rendering because it might not match the page! Can be used for theme switching and testing.

    Request

    This request has no parameters.

    Responses

    OK

    application/json

    User theme preferences response
    GET/user-preferences
    1 2 3 curl --request GET \ --url 'http://example.com/rest/atlassian-theme/1/user-preferences' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 { "Color mode": {}, "Dark theme key": {}, "Light theme key": {} }
    POST

    Set theme preferences for the user

    Updates individual preferences for the user with what is provided

    Request

    Request bodyapplication/json

    Color mode

    string

    Dark theme key

    string

    Light theme key

    string

    Responses

    OK - Everything was updated

    application/json

    User theme preferences response
    POST/user-preferences
    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": {} }'
    200Response
    1 2 3 4 5 { "Color mode": {}, "Dark theme key": {}, "Light theme key": {} }

    Rate this page: