{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/merofoundry-com/json-schema/merofoundry-com-update-application-request-schema.json",
  "title": "UpdateApplicationRequest",
  "description": "Schema for application update requests.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/merofoundry-com-openapi.json#/components/schemas/UpdateApplicationRequest",
  "additionalProperties": false,
  "properties": {
    "allowedOrigins": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Origins that may call this application's API cross-origin with credentials, answered on the application's hosts: `scheme://host[:port]`, lowercase, no path, at most 20. Schemes `https`, `capacitor`, `ionic`, and `http` only for `localhost`. Writing it, `[]` included, requires the `mobile_distribution` capability to be enabled. `[]` clears the list; omitting the key keeps it.",
      "title": "Allowedorigins"
    },
    "auditRetentionDays": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auditretentiondays"
    },
    "capabilities": {
      "anyOf": [
        {
          "$ref": "#/$defs/CapabilitiesUpdate"
        },
        {
          "type": "null"
        }
      ]
    },
    "closed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Closed"
    },
    "componentPack": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Componentpack"
    },
    "customDomain": {
      "anyOf": [
        {
          "maxLength": 255,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Customdomain"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "generatedRootFiles": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Generatedrootfiles"
    },
    "googleAnalyticsMeasurementId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Googleanalyticsmeasurementid"
    },
    "icon": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Icon"
    },
    "identityModelId": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Identitymodelid"
    },
    "identitySettings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Identitysettings"
    },
    "mcpSettings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mcpsettings"
    },
    "name": {
      "anyOf": [
        {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "siteCsp": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sitecsp"
    },
    "sitePreviewPublic": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Serve the application's preview host (`<label>--preview.<parent>`) without a platform sign-in. `false` or `null` restores the default: only signed-in platform users with access to the application can open the preview.",
      "title": "Sitepreviewpublic"
    },
    "socialImageUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Socialimageurl"
    },
    "staticAssetBindings": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Staticassetbindings"
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    },
    "structuredData": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Structureddata"
    },
    "timezone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timezone"
    },
    "trustedImageOrigins": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trustedimageorigins"
    }
  },
  "type": "object",
  "$defs": {
    "CapabilitiesUpdate": {
      "additionalProperties": {
        "enum": [
          "enabled",
          "disabled"
        ],
        "type": "string"
      },
      "description": "Map OPTIONAL capability IDs to enabled, or disabled to clear their override.\n\nValues are closed here; registry validation supplies named errors for keys.",
      "title": "CapabilitiesUpdate",
      "type": "object"
    }
  }
}