{"openapi":"3.1.0","info":{"description":"Cross-product theme REST API. The root path is /rest/atlassian-theme/1","title":"Atlassian Theme","version":"1"},"servers":[{"url":"http://example.com/rest/atlassian-theme/1"}],"tags":[{"description":"For accessing and modifying the user's preferences","name":"User Preferences"}],"paths":{"/user-preferences":{"get":{"description":"Should NOT be used for rendering because it might not match the page! Can be used for theme switching and testing.","operationId":"getUserThemePreferences","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserThemePreferences"}}},"description":"OK"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessages"}}},"description":"Internal Server Error"}},"summary":"Get theme preferences for the user","tags":["User Preferences"]},"post":{"description":"Updates individual preferences for the user with what is provided","operationId":"setUserThemePreferences","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserThemePreferences","default":"{}"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserThemePreferences"}}},"description":"OK - Everything was updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessages"}}},"description":"Bad Request - Nothing was updated"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessages"}}},"description":"Internal Server Error"}},"summary":"Set theme preferences for the user","tags":["User Preferences"]}}},"components":{"schemas":{"ErrorMessages":{"properties":{"Errors":{"type":["array"],"items":{"type":["string"]}}},"required":["Errors"],"title":"Error response"},"UserThemePreferences":{"properties":{"Color mode":{"type":["string"],"enum":["MATCHING","DARK","LIGHT"]},"Dark theme key":{"type":["string"],"examples":["dark"]},"Light theme key":{"type":["string"],"examples":["original","light"]}},"title":"User theme preferences response"}}}}