Skip to main content
PATCH
/
themes
Update theme configuration
curl --request PATCH \
  --url https://{subdomain}.nudj.cx/api/v2/admin/themes \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '
{
  "themeAssets": {
    "light": {
      "logo": "<string>",
      "navbarLogo": "<string>",
      "favicon": "<string>",
      "appleTouchIcon": "<string>"
    },
    "dark": {
      "logo": "<string>",
      "navbarLogo": "<string>",
      "favicon": "<string>",
      "appleTouchIcon": "<string>"
    }
  },
  "theme": {
    "font": {
      "family": "<string>",
      "sizes": {
        "xs": "<string>",
        "sm": "<string>",
        "base": "<string>",
        "lg": "<string>",
        "xl": "<string>",
        "2xl": "<string>",
        "3xl": "<string>",
        "4xl": "<string>",
        "5xl": "<string>",
        "6xl": "<string>"
      }
    },
    "borderRadius": "<string>",
    "colors": {
      "light": {
        "background": "<string>",
        "card": "<string>",
        "cardForeground": "<string>",
        "foreground": "<string>",
        "popover": "<string>",
        "popoverForeground": "<string>",
        "primary": "<string>",
        "primaryForeground": "<string>",
        "secondary": "<string>",
        "secondaryForeground": "<string>",
        "muted": "<string>",
        "mutedForeground": "<string>",
        "accent": "<string>",
        "accentForeground": "<string>",
        "destructive": "<string>",
        "destructiveForeground": "<string>",
        "border": "<string>",
        "input": "<string>",
        "ring": "<string>",
        "success": "<string>",
        "successForeground": "<string>"
      },
      "dark": {
        "background": "<string>",
        "card": "<string>",
        "cardForeground": "<string>",
        "foreground": "<string>",
        "popover": "<string>",
        "popoverForeground": "<string>",
        "primary": "<string>",
        "primaryForeground": "<string>",
        "secondary": "<string>",
        "secondaryForeground": "<string>",
        "muted": "<string>",
        "mutedForeground": "<string>",
        "accent": "<string>",
        "accentForeground": "<string>",
        "destructive": "<string>",
        "destructiveForeground": "<string>",
        "border": "<string>",
        "input": "<string>",
        "ring": "<string>",
        "success": "<string>",
        "successForeground": "<string>"
      }
    },
    "forcedTheme": "light",
    "disableCardGradients": true,
    "rewardCardVersion": "textual",
    "hideCommunityDetailsOnCards": true,
    "postCardVersion": "<string>",
    "achievementCardVersion": "<string>",
    "challengeCardVersion": "<string>",
    "rewardDetailsVersion": "grid",
    "postDetailsVersion": "grid",
    "achievementDetailsVersion": "grid",
    "challengeDetailsVersion": "grid",
    "mobileNav": {
      "iconOnly": true,
      "fontSize": "<string>"
    },
    "homeButtonOverrideUrl": "<string>",
    "orgLogoOverrideUrl": "<string>",
    "icons": {},
    "backgroundImage": "<string>"
  }
}
'
{
  "themeAssets": {
    "light": {
      "logo": "<string>",
      "navbarLogo": "<string>",
      "favicon": "<string>",
      "appleTouchIcon": "<string>"
    },
    "dark": {
      "logo": "<string>",
      "navbarLogo": "<string>",
      "favicon": "<string>",
      "appleTouchIcon": "<string>"
    }
  },
  "theme": {
    "font": {
      "family": "<string>",
      "sizes": {
        "xs": "<string>",
        "sm": "<string>",
        "base": "<string>",
        "lg": "<string>",
        "xl": "<string>",
        "2xl": "<string>",
        "3xl": "<string>",
        "4xl": "<string>",
        "5xl": "<string>",
        "6xl": "<string>"
      }
    },
    "borderRadius": "<string>",
    "colors": {
      "light": {},
      "dark": {}
    },
    "forcedTheme": "light",
    "disableCardGradients": true,
    "rewardCardVersion": "textual",
    "hideCommunityDetailsOnCards": true,
    "postCardVersion": "<string>",
    "achievementCardVersion": "<string>",
    "challengeCardVersion": "<string>",
    "rewardDetailsVersion": "grid",
    "postDetailsVersion": "grid",
    "achievementDetailsVersion": "grid",
    "challengeDetailsVersion": "grid",
    "challengeCompleteVersion": "classic",
    "mobileNav": {
      "iconOnly": true,
      "fontSize": "<string>"
    },
    "homeButtonOverrideUrl": "<string>",
    "orgLogoOverrideUrl": "<string>",
    "icons": {},
    "backgroundImage": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nudj.cx/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-token
string
header
required

Body

application/json

The input required to update the style configuration

themeAssets
object

Theme assets configuration

theme
object

Response

Successful response

Configuration for UI styling and theming

themeAssets
object

Theme assets configuration

theme
object

Theme configuration