{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-dashboard-gadget-settings-schema.json",
  "title": "DashboardGadgetSettings",
  "description": "Details of the settings for a dashboard gadget.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-dashboards-api-openapi.yml#/components/schemas/DashboardGadgetSettings",
  "additionalProperties": false,
  "properties": {
    "color": {
      "description": "The color of the gadget. Should be one of `blue`, `red`, `yellow`, `green`, `cyan`, `purple`, `gray`, or `white`.",
      "type": "string",
      "writeOnly": true
    },
    "ignoreUriAndModuleKeyValidation": {
      "description": "Whether to ignore the validation of module key and URI. For example, when a gadget is created that is a part of an application that isn't installed.",
      "type": "boolean",
      "writeOnly": true
    },
    "moduleKey": {
      "description": "The module key of the gadget type. Can't be provided with `uri`.",
      "type": "string",
      "writeOnly": true
    },
    "position": {
      "allOf": [
        {
          "$ref": "#/$defs/DashboardGadgetPosition"
        }
      ],
      "description": "The position of the gadget. When the gadget is placed into the position, other gadgets in the same column are moved down to accommodate it."
    },
    "title": {
      "description": "The title of the gadget.",
      "type": "string",
      "writeOnly": true
    },
    "uri": {
      "description": "The URI of the gadget type. Can't be provided with `moduleKey`.",
      "type": "string",
      "writeOnly": true
    }
  },
  "type": "object",
  "$defs": {
    "DashboardGadgetPosition": {
      "additionalProperties": false,
      "description": "Details of a gadget position.",
      "properties": {
        "The column position of the gadget.": {
          "format": "int32",
          "type": "integer"
        },
        "The row position of the gadget.": {
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "The column position of the gadget.",
        "The row position of the gadget."
      ],
      "type": "object",
      "writeOnly": true
    }
  }
}