{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/moesif/main/json-schema/moesif-workspace-document-schema.json", "title": "WorkspaceDocument", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/moesif-workspaces-api-openapi.yml#/components/schemas/WorkspaceDocument", "properties": { "name": { "type": "string" }, "is_default": { "type": "boolean" }, "view_count": { "type": "integer", "format": "int32" }, "_id": { "type": "string" }, "is_template": { "type": "boolean" }, "dashboard": { "type": "object" }, "auth_user_id": { "type": "string" }, "colors": { "type": "object" }, "sequence": { "type": "array", "items": { "$ref": "#/$defs/SequenceItem" } }, "drawings": { "type": "array", "items": { "$ref": "#/$defs/DrawingItem" } }, "chart": { "$ref": "#/$defs/ChartItem" }, "template": { "$ref": "#/$defs/TemplateItem" }, "app_id": { "type": "string" }, "type": { "type": "string" }, "width": { "type": "number", "format": "double" }, "sort_order": { "type": "number", "format": "double" }, "policy": { "$ref": "#/$defs/PolicyItem" }, "org_id": { "type": "string" }, "migration": { "type": "object" }, "created": { "type": "string", "format": "date-time" }, "comments": { "$ref": "#/$defs/Comments" } }, "required": [ "auth_user_id", "org_id", "app_id", "created", "view_count" ], "$defs": { "ACLItem": { "properties": { "grantee": { "type": "string" }, "permission": { "type": "string" } }, "required": [ "grantee", "permission" ] }, "ChartItem": { "properties": { "original_encoded_view_elements": { "type": "string" }, "funnel_query": { "type": "object" }, "url_query": { "type": "string" }, "to": { "type": "string" }, "view_elements": { "type": "object" }, "from": { "type": "string" }, "original_encoded_funnel_query": { "type": "string" }, "es_query": { "type": "object" }, "args": { "type": "string" }, "original_encoded_query": { "type": "string" }, "time_zone": { "type": "string" }, "view": { "type": "string" } }, "required": [ "view", "url_query" ] }, "Comments": { "properties": { "summary": { "$ref": "#/$defs/Summary" } }, "required": [ "summary" ] }, "CreateCommentItem": { "properties": { "auth_user_id": { "type": "string" }, "comment_id": { "type": "string" }, "mentions": { "type": "array", "items": { "type": "string" } }, "partner_user_id": { "type": "string" }, "message": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" } } }, "DrawingItem": { "properties": { "name": { "type": "string" }, "direction": { "type": "string" }, "id": { "type": "string" }, "type": { "type": "string" }, "value": { "type": "number", "format": "double" } }, "required": [ "id", "name", "type", "value", "direction" ] }, "KeyValuePair": { "properties": { "key": { "type": "string" }, "val": { "type": "string" } }, "required": [ "key", "val" ] }, "PolicyItem": { "properties": { "acl": { "type": "array", "items": { "$ref": "#/$defs/ACLItem" } }, "resource": { "type": "object" }, "api_scopes": { "type": "array", "items": { "type": "string" } }, "original_encoded_resource": { "type": "string" } }, "required": [ "acl", "resource" ] }, "SequenceItem": { "properties": { "delay": { "type": "integer", "format": "int32" }, "submit_data": { "$ref": "#/$defs/SubmitData" } }, "required": [ "delay", "submit_data" ] }, "SubmitData": { "properties": { "body": { "type": "object" }, "url": { "type": "string" }, "params": { "type": "array", "items": { "$ref": "#/$defs/KeyValuePair" } }, "verb": { "type": "string" }, "headers": { "type": "array", "items": { "$ref": "#/$defs/KeyValuePair" } } }, "required": [ "url", "verb" ] }, "Summary": { "properties": { "count": { "type": "integer", "format": "int32" }, "latest_comment": { "$ref": "#/$defs/CreateCommentItem" } }, "required": [ "count" ] }, "TemplateItem": { "properties": { "dynamic_fields": { "type": "array", "items": { "type": "string" } }, "dynamic_time": { "type": "boolean" } }, "required": [ "dynamic_fields" ] } } }