{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://planable.io/schemas/post_workspaces-request.json", "title": "Post_Workspaces Request", "type": "object", "properties": { "name": { "type": "string", "minLength": 2, "maxLength": 80 }, "timezone": { "type": "string" }, "approvalSettings": { "anyOf": [ { "allOf": [ { "type": "object", "properties": { "autoSchedule": { "type": "boolean" }, "autoLock": { "type": "boolean" }, "sendReminders": { "type": "boolean" } }, "required": [ "autoSchedule", "autoLock" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "MULTIPLE" ] }, "approvalLevels": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "label": { "type": "string" }, "approversIds": { "type": "array", "items": { "type": "string" } } }, "required": [ "id", "label", "approversIds" ] } } }, "required": [ "type" ] } ] }, { "allOf": [ { "type": "object", "properties": { "autoSchedule": { "type": "boolean" }, "autoLock": { "type": "boolean" }, "sendReminders": { "type": "boolean" } }, "required": [ "autoSchedule", "autoLock" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "NONE", "OPTIONAL", "REQUIRED" ] } }, "required": [ "type" ] } ] } ] }, "websiteUrl": { "type": "string", "maxLength": 2048 } }, "required": [ "name", "timezone", "approvalSettings" ] }