{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mindcloud/json-schema/mindcloud-child-company-schema.json",
  "title": "ChildCompany",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mindcloud-child-companies-api-openapi.yml#/components/schemas/ChildCompany",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The child organization's id. Send it in X-Company-Id to call other endpoints on the child."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The child organization's name."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "The child organization's description."
    },
    "origin": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "created",
        "linked",
        null
      ],
      "description": "created when your company created it through the API, linked when an existing organization accepted your company as its parent in Cirra."
    },
    "linkedOn": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the link started."
    },
    "memberCount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Members of the child organization, including pending invites."
    },
    "ownerCount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Active Owners. A child cannot be released while this is 0."
    }
  },
  "required": [
    "id",
    "name",
    "description",
    "origin",
    "linkedOn",
    "memberCount",
    "ownerCount"
  ]
}