Planable · Schema

Get_Workspaces Response 200

Social MediaContent CollaborationApproval WorkflowsSocial Media ManagementContent PublishingMarketing

Properties

Name Type Description
data array
View JSON Schema on GitHub

JSON Schema

get_workspaces-response-200.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://planable.io/schemas/get_workspaces-response-200.json",
  "title": "Get_Workspaces Response 200",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "websiteUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "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"
                    ]
                  }
                ]
              }
            ]
          },
          "defaultTeamOnlyPosts": {
            "type": "boolean"
          },
          "hideEmailsFromClients": {
            "type": "boolean"
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "color": {
                  "type": "string"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "color",
                "name"
              ]
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "companyId",
          "timezone",
          "websiteUrl",
          "approvalSettings",
          "defaultTeamOnlyPosts",
          "hideEmailsFromClients",
          "labels",
          "createdAt",
          "updatedAt"
        ]
      }
    }
  },
  "required": [
    "data"
  ]
}