Studio

Update the Studio config

Updates the Studio appearance and controls for this API key.

put/api/v1/studio/config

Request

  • Base URL: https://api.sudomock.com
  • URL: https://api.sudomock.com/api/v1/studio/config
  • Auth: API key in header x-api-key

Request body

config_versioninteger required

Version you last read, which must still be the stored one.

Example request

{
  "config": {
    "accentColor": "#FF5733",
    "theme": "dark"
  },
  "config_version": 3
}

Response

Successful Response

successboolean

True when the configuration was returned.

configobject

The effective Studio configuration for this API key.

config_versioninteger

Version of the stored configuration, which rises with every update.

Example response

{
  "config": {
    "accentColor": "#da7756",
    "backgroundColor": "#f1f5f9",
    "borderRadius": 10,
    "headerText": "Customize Your Design",
    "primaryColor": "#0f172a",
    "uploadText": "Drop image or click to upload"
  },
  "config_version": 3
}

Changes

No recorded changes to this operation across all 1 revision of this API.