Class ThemesApi

java.lang.Object
com.okta.sdk.resource.api.ThemesApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T08:35:59.300824-05:00[America/Chicago]", comments="Generator version: 7.8.0") public class ThemesApi extends Object
  • Constructor Details Link icon

    • ThemesApi Link icon

      public ThemesApi()
    • ThemesApi Link icon

      public ThemesApi(ApiClient apiClient)
  • Method Details Link icon

    • getApiClient Link icon

      public ApiClient getApiClient()
    • setApiClient Link icon

      public void setApiClient(ApiClient apiClient)
    • deleteBrandThemeBackgroundImage Link icon

      public void deleteBrandThemeBackgroundImage(String brandId, String themeId) throws ApiException
      Delete the Background Image Deletes a Theme background image
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      Throws:
      ApiException - if fails to make API call
    • deleteBrandThemeBackgroundImage Link icon

      public void deleteBrandThemeBackgroundImage(String brandId, String themeId, Map<String,String> additionalHeaders) throws ApiException
      Delete the Background Image Deletes a Theme background image
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • deleteBrandThemeFavicon Link icon

      public void deleteBrandThemeFavicon(String brandId, String themeId) throws ApiException
      Delete the Favicon Deletes a Theme favicon. The theme will use the default Okta favicon.
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      Throws:
      ApiException - if fails to make API call
    • deleteBrandThemeFavicon Link icon

      public void deleteBrandThemeFavicon(String brandId, String themeId, Map<String,String> additionalHeaders) throws ApiException
      Delete the Favicon Deletes a Theme favicon. The theme will use the default Okta favicon.
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • deleteBrandThemeLogo Link icon

      public void deleteBrandThemeLogo(String brandId, String themeId) throws ApiException
      Delete the Logo Deletes a Theme logo. The theme will use the default Okta logo.
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      Throws:
      ApiException - if fails to make API call
    • deleteBrandThemeLogo Link icon

      public void deleteBrandThemeLogo(String brandId, String themeId, Map<String,String> additionalHeaders) throws ApiException
      Delete the Logo Deletes a Theme logo. The theme will use the default Okta logo.
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getBrandTheme Link icon

      public ThemeResponse getBrandTheme(String brandId, String themeId) throws ApiException
      Retrieve a Theme Retrieves a theme for a brand
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      Returns:
      ThemeResponse
      Throws:
      ApiException - if fails to make API call
    • getBrandTheme Link icon

      public ThemeResponse getBrandTheme(String brandId, String themeId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a Theme Retrieves a theme for a brand
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ThemeResponse
      Throws:
      ApiException - if fails to make API call
    • listBrandThemes Link icon

      public List<ThemeResponse> listBrandThemes(String brandId) throws ApiException
      List all Themes Lists all the themes in your brand. > **Important:** Currently each org supports only one Theme, therefore this contains a single object only.
      Parameters:
      brandId - The ID of the brand (required)
      Returns:
      List<ThemeResponse>
      Throws:
      ApiException - if fails to make API call
    • listBrandThemes Link icon

      public List<ThemeResponse> listBrandThemes(String brandId, Map<String,String> additionalHeaders) throws ApiException
      List all Themes Lists all the themes in your brand. > **Important:** Currently each org supports only one Theme, therefore this contains a single object only.
      Parameters:
      brandId - The ID of the brand (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<ThemeResponse>
      Throws:
      ApiException - if fails to make API call
    • replaceBrandTheme Link icon

      public ThemeResponse replaceBrandTheme(String brandId, String themeId, UpdateThemeRequest theme) throws ApiException
      Replace a Theme Replaces a theme for a brand
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      theme - (required)
      Returns:
      ThemeResponse
      Throws:
      ApiException - if fails to make API call
    • replaceBrandTheme Link icon

      public ThemeResponse replaceBrandTheme(String brandId, String themeId, UpdateThemeRequest theme, Map<String,String> additionalHeaders) throws ApiException
      Replace a Theme Replaces a theme for a brand
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      theme - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ThemeResponse
      Throws:
      ApiException - if fails to make API call
    • uploadBrandThemeBackgroundImage Link icon

      public ImageUploadResponse uploadBrandThemeBackgroundImage(String brandId, String themeId, File _file) throws ApiException
      Upload the Background Image Uploads and replaces the background image for the theme. The file must be in PNG, JPG, or GIF format and less than 2 MB in size.
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      _file - (required)
      Returns:
      ImageUploadResponse
      Throws:
      ApiException - if fails to make API call
    • uploadBrandThemeBackgroundImage Link icon

      public ImageUploadResponse uploadBrandThemeBackgroundImage(String brandId, String themeId, File _file, Map<String,String> additionalHeaders) throws ApiException
      Upload the Background Image Uploads and replaces the background image for the theme. The file must be in PNG, JPG, or GIF format and less than 2 MB in size.
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      _file - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ImageUploadResponse
      Throws:
      ApiException - if fails to make API call
    • uploadBrandThemeFavicon Link icon

      public ImageUploadResponse uploadBrandThemeFavicon(String brandId, String themeId, File _file) throws ApiException
      Upload the Favicon Uploads and replaces the favicon for the theme
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      _file - (required)
      Returns:
      ImageUploadResponse
      Throws:
      ApiException - if fails to make API call
    • uploadBrandThemeFavicon Link icon

      public ImageUploadResponse uploadBrandThemeFavicon(String brandId, String themeId, File _file, Map<String,String> additionalHeaders) throws ApiException
      Upload the Favicon Uploads and replaces the favicon for the theme
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      _file - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ImageUploadResponse
      Throws:
      ApiException - if fails to make API call
    • uploadBrandThemeLogo Link icon

      public ImageUploadResponse uploadBrandThemeLogo(String brandId, String themeId, File _file) throws ApiException
      Upload the Logo Uploads and replaces the logo for the theme. The file must be in PNG, JPG, or GIF format and less than 100kB in size. For best results use landscape orientation, a transparent background, and a minimum size of 300px by 50px to prevent upscaling.
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      _file - (required)
      Returns:
      ImageUploadResponse
      Throws:
      ApiException - if fails to make API call
    • uploadBrandThemeLogo Link icon

      public ImageUploadResponse uploadBrandThemeLogo(String brandId, String themeId, File _file, Map<String,String> additionalHeaders) throws ApiException
      Upload the Logo Uploads and replaces the logo for the theme. The file must be in PNG, JPG, or GIF format and less than 100kB in size. For best results use landscape orientation, a transparent background, and a minimum size of 300px by 50px to prevent upscaling.
      Parameters:
      brandId - The ID of the brand (required)
      themeId - The ID of the theme (required)
      _file - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ImageUploadResponse
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper Link icon

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()