Planable · Schema

Get_Media Response 200

Social MediaContent CollaborationApproval WorkflowsSocial Media ManagementContent PublishingMarketing

Properties

Name Type Description
data array
pagination object
View JSON Schema on GitHub

JSON Schema

get_media-response-200.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://planable.io/schemas/get_media-response-200.json",
  "title": "Get_Media Response 200",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "workspaceId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "image",
              "video",
              "gif"
            ]
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "thumbnailUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "width": {
            "type": [
              "number",
              "null"
            ]
          },
          "height": {
            "type": [
              "number",
              "null"
            ]
          },
          "size": {
            "type": "number"
          },
          "mimeType": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "uploading",
              "processing",
              "error",
              "success"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "type",
          "name",
          "url",
          "thumbnailUrl",
          "width",
          "height",
          "size",
          "mimeType",
          "status",
          "createdAt"
        ]
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "offset": {
          "type": "number"
        },
        "limit": {
          "type": "number"
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "required": [
        "offset",
        "limit",
        "hasMore"
      ]
    }
  },
  "required": [
    "data",
    "pagination"
  ]
}