{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zelto/json-schema/zelto-provisioned-organization-schema.json",
  "title": "ProvisionedOrganization",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zelto-organizations-api-openapi.yml#/components/schemas/ProvisionedOrganization",
  "type": "object",
  "required": [
    "id",
    "slug",
    "orgUrl",
    "ownerUserId",
    "created"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "slug": {
      "type": "string",
      "description": "URL slug, `<name>-<8 hex>`."
    },
    "orgUrl": {
      "type": "string",
      "format": "uri",
      "description": "Absolute URL to the org dashboard."
    },
    "ownerUserId": {
      "type": "string",
      "format": "uuid"
    },
    "created": {
      "type": "object",
      "required": [
        "org",
        "user"
      ],
      "description": "Whether each entity was newly created (vs. reused).",
      "properties": {
        "org": {
          "type": "boolean"
        },
        "user": {
          "type": "boolean"
        }
      }
    }
  }
}