{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/canonical/main/json-schema/canonical-post-files-make-dirs-request-schema.json", "title": "PostFilesMakeDirsRequest", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/canonical-files-api-openapi.yml#/components/schemas/PostFilesMakeDirsRequest", "type": "object", "properties": { "action": { "type": "string", "enum": [ "make-dirs" ] }, "dirs": { "type": "array", "items": { "$ref": "#/$defs/makeDirsItem" } } }, "required": [ "action", "dirs" ], "$defs": { "makeDirsItem": { "type": "object", "properties": { "path": { "type": "string", "description": "The directory path to create." }, "make-parents": { "type": "boolean", "description": "Whether to create parent directories as needed." }, "permissions": { "type": "string", "description": "Permissions for the created directory (octal format, e.g., \"755\")." }, "user-id": { "type": "integer", "description": "User ID of the owner." }, "user": { "type": "string", "description": "Username of the owner." }, "group-id": { "type": "integer", "description": "Group ID of the owner." }, "group": { "type": "string", "description": "Group name of the owner." } }, "required": [ "path" ] } } }