{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-directory-v1-create-folder-request-schema.json",
  "title": "CreateFolderRequest",
  "description": "The parameters for `CreateFolderRequest`",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-directory-sites-api-openapi.yml#/components/schemas/s12.directory.v1.CreateFolderRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Required. Non-empty folder name. Limited to maximum 250 characters."
    },
    "parent_id": {
      "type": "string",
      "description": "Optional. Parent folder UUID. If unspecified, will be created as a root\nfolder"
    },
    "id": {
      "type": "string",
      "description": "Optional. Folder UUID. If unspecified, backend will generate the ID."
    },
    "meta_label": {
      "type": "string",
      "description": "Required. Must be one of: \"location\", \"area\", \"region\", \"state\", or \"country\".\nNote that these meta labels may not match custom site hierarchy labels used by the organization."
    },
    "domain": {
      "type": "string",
      "description": "domain represents the type/domain/hierarchy for the folder. This is used\nfor getting folders of a certain domain, i.e. getting all `template`\nfolders or `site` folders"
    }
  },
  "required": [
    "name",
    "meta_label"
  ]
}