{
  "openapi": "3.0.1",
  "info": {
    "title": "teamnext | Media Hub - API",
    "version": "v1"
  },
  "paths": {
    "/api/v1/media/custom-download/settings": {
      "get": {
        "tags": [
          "Media",
          "CustomDownload"
        ],
        "summary": "Get custom download settings",
        "operationId": "GetCustomDownloadSettings",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomDownloadSettingsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomDownloadSettingsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomDownloadSettingsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/custom-download": {
      "post": {
        "tags": [
          "Media",
          "CustomDownload"
        ],
        "summary": "Download custom files",
        "operationId": "DownloadCustomFiles",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CustomDownloadModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CustomDownloadModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CustomDownloadModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomDownloadFileDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomDownloadFileDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomDownloadFileDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dataset/{id}": {
      "get": {
        "tags": [
          "Dataset"
        ],
        "summary": "Gets a dataset by ID.",
        "operationId": "GetDataset",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dataset/property/{propertyId}/values": {
      "get": {
        "tags": [
          "Dataset"
        ],
        "summary": "Gets the values of a dataset property.",
        "operationId": "GetValuesByProperty",
        "parameters": [
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetValueDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetValueDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetValueDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dataset/create-many": {
      "post": {
        "tags": [
          "Dataset"
        ],
        "summary": "Creates many datasets.",
        "operationId": "CreateManyDatasets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateManyDatasetsModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateManyDatasetsModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateManyDatasetsModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dataset/update-many": {
      "post": {
        "tags": [
          "Dataset"
        ],
        "summary": "Updates many datasets.",
        "operationId": "UpdateManyDatasets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UpdateDatasetModel"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UpdateDatasetModel"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UpdateDatasetModel"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/dataset/delete-many": {
      "post": {
        "tags": [
          "Dataset"
        ],
        "summary": "Deletes many datasets.",
        "operationId": "DeleteManyDatasets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/dataset/upsert-many": {
      "post": {
        "tags": [
          "Dataset"
        ],
        "summary": "Upserts many datasets.",
        "operationId": "UpsertManyDatasets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpsertManyDatasetsModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpsertManyDatasetsModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpsertManyDatasetsModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/dataset/{id}/add-files": {
      "put": {
        "tags": [
          "Dataset",
          "File"
        ],
        "summary": "Adds files to a dataset.",
        "operationId": "AddFilesToDataset",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/dataset/{id}/remove-files": {
      "put": {
        "tags": [
          "Dataset",
          "File"
        ],
        "summary": "Removes files from a dataset.",
        "operationId": "RemoveFilesFromDataset",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/dataset/by-files": {
      "post": {
        "tags": [
          "Dataset",
          "File"
        ],
        "summary": "Gets datasets by file IDs.",
        "operationId": "GetDatasetsByFileIds",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "DatasetByFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DatasetsByFilesModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "DatasetByFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DatasetsByFilesModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "DatasetByFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DatasetsByFilesModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilesDatasetDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilesDatasetDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilesDatasetDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dataset/type": {
      "get": {
        "tags": [
          "Dataset"
        ],
        "summary": "Gets all dataset types.",
        "operationId": "GetDatasetTypes",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetTypeDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetTypeDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetTypeDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dataset/type/{id}/properties": {
      "get": {
        "tags": [
          "Dataset"
        ],
        "summary": "Gets the properties of a dataset type.",
        "operationId": "GetDatasetProperties",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetPropertyDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetPropertyDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetPropertyDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dataset/type/{id}/datasets": {
      "get": {
        "tags": [
          "Dataset"
        ],
        "summary": "Gets all datasets of a dataset type.",
        "operationId": "GetDatasets",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatasetDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/download-url": {
      "post": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Generates permanent download URLs",
        "description": "Returns one public CDN URL per request, in request order. The URL needs no authentication, does not expire and makes the browser download the unmodified original file with its file name (Content-Disposition: attachment). A CurrentVersion URL always delivers the file's latest version. Requires image transforms to be enabled for the organization.",
        "operationId": "GenerateDownloadUrls",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GenerateDownloadUrlModel"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GenerateDownloadUrlModel"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GenerateDownloadUrlModel"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/image-transform-url": {
      "post": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Generates signed image transform URLs",
        "description": "\nReturns one signed URL per request item, in input order (at most 250 items per call). Each URL renders the source image with the requested crop, size and format when it is fetched. If any item is invalid, the whole call fails with 400 and an error message.\n\n**Supported source formats** (decided by the stored file type, the file extension must match):\n- JPEG (.jpg, .jpeg, .jpe, .jfif), PNG, GIF, TIFF (.tif, .tiff), BMP, WebP\n- HEIC/HEIF, AVIF, JPEG XL (.jxl), JPEG 2000 (.jp2)\n- SVG: rendered at the requested size to the requested raster format. Cropping is not supported.\n\nNot supported: ICO, PSD/PSB, EPS/AI, PDF, camera RAW and files whose content does not match an image format.\n\n**Output format:** Format is JPEG unless another one is requested, also when it is omitted. JPEG has no transparency: transparent areas (e.g. of a logo) are filled white. PNG, WebP and AVIF keep them transparent.\n\n**Source limits:**\n- File size: 300 MB\n- Resolution (width × height): 400 megapixels; 200 megapixels for all formats except JPEG and WebP\n- The file must be processed: its dimensions are known\n\n**Output limits:**\n- Width and height: at most 4000 px each\n- A missing dimension (0 or omitted) is derived from the aspect ratio of the source or crop. With Fill and Force the derived dimension must stay within the limit as well; with Fit and Auto the image is fitted into the limit.\n- No dimension at all: the image keeps its size, scaled down to fit 4000 × 4000 if it is larger.\n\n**Error messages** (400):\n- At least one URL request must be provided. / A maximum of 250 URL requests can be processed at once.\n- Image transforms are not enabled for this organization.\n- The file is not available. / File not found. / Version not found.\n- Crop requires x, y, width, and height.\n- The file extension is not supported for image proxying.\n- The file type is not supported for image proxying.\n- The file is too large for image proxying.\n- The file dimensions are not available yet.\n- The file resolution exceeds the image proxy limit.\n- The file resolution exceeds the image proxy limit for this file type.\n- The requested transform width exceeds the image proxy limit. (or height)\n- The requested crop width exceeds the source image bounds. (or height)\n- Cropping is not supported for SVG files.",
        "operationId": "GenerateImageTransformUrls",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GenerateImageTransformUrlModel"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GenerateImageTransformUrlModel"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GenerateImageTransformUrlModel"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/license/by-files": {
      "post": {
        "tags": [
          "Media",
          "License"
        ],
        "summary": "Get licenses by file IDs",
        "description": "Retrieves licenses associated with the specified file IDs. Files in licenses can only contain files with the specified IDs.",
        "operationId": "GetLicensesByFileIds",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "LicensesByFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LicensesByFilesModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "LicensesByFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LicensesByFilesModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "LicensesByFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LicensesByFilesModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilesLicenseDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilesLicenseDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilesLicenseDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/album": {
      "get": {
        "tags": [
          "Media",
          "Album"
        ],
        "summary": "Gets main albums",
        "operationId": "GetMainAlbums",
        "parameters": [
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "title": "AlbumSortBy",
              "allOf": [
                {
                  "$ref": "#/components/schemas/MediaAlbumSortBy"
                }
              ],
              "description": "CreatedAt = 0; Name = 1"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "title": "SortDirection",
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortDirection"
                }
              ],
              "description": "Ascending = 0; Descending = 1"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/album/{id}": {
      "get": {
        "tags": [
          "Media",
          "Album"
        ],
        "summary": "Gets album by id",
        "operationId": "GetAlbum",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Media",
          "Album"
        ],
        "summary": "Deletes album",
        "operationId": "DeleteAlbum",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/album/{id}/albums": {
      "get": {
        "tags": [
          "Media",
          "Album"
        ],
        "summary": "Gets albums by mainAlbumId",
        "operationId": "GetSubAlbums",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "title": "AlbumSortBy",
              "allOf": [
                {
                  "$ref": "#/components/schemas/MediaAlbumSortBy"
                }
              ],
              "description": "CreatedAt = 0; Name = 1"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "title": "SortDirection",
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortDirection"
                }
              ],
              "description": "Ascending = 0; Descending = 1"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/album/{id}/files": {
      "get": {
        "tags": [
          "Media",
          "Album",
          "File"
        ],
        "summary": "Gets files by albumId",
        "operationId": "GetAlbumFiles",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "title": "FileSortBy",
              "allOf": [
                {
                  "$ref": "#/components/schemas/MediaFileSortBy"
                }
              ],
              "description": "UploadDate = 0; RecordingDate = 1; FileName = 2"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "title": "SortDirection",
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortDirection"
                }
              ],
              "description": "Ascending = 0; Descending = 1"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/album/create": {
      "post": {
        "tags": [
          "Media",
          "Album"
        ],
        "summary": "Creates a new album",
        "operationId": "CreateAlbum",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "CreateAlbumModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaAlbumModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "CreateAlbumModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaAlbumModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "CreateAlbumModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaAlbumModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAlbumDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/album/{id}/update": {
      "put": {
        "tags": [
          "Media",
          "Album"
        ],
        "summary": "Updates album",
        "operationId": "UpdateAlbum",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "UpdateAlbumModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaAlbumModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "UpdateAlbumModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaAlbumModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "UpdateAlbumModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaAlbumModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}": {
      "get": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Gets file by id",
        "operationId": "GetFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Deletes a file",
        "operationId": "DeleteFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/upload": {
      "post": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Uploads a file",
        "operationId": "UploadFile",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "File",
                  "WorkspaceId"
                ],
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary"
                  },
                  "WorkspaceId": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "FolderId": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                },
                "WorkspaceId": {
                  "style": "form"
                },
                "FolderId": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/file/{id}/update": {
      "post": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Updates a file",
        "operationId": "UpdateFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "File"
                ],
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/file/{id}/add-tags": {
      "post": {
        "tags": [
          "Media",
          "File",
          "Tag"
        ],
        "summary": "Adds tags to a file",
        "operationId": "AddTagsToFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/remove-tags": {
      "post": {
        "tags": [
          "Media",
          "File",
          "Tag"
        ],
        "summary": "Removes tags from a file",
        "operationId": "RemoveTagsFromFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/add-persons": {
      "post": {
        "tags": [
          "Media",
          "File",
          "Person"
        ],
        "summary": "Adds persons to a file",
        "operationId": "AddPersonsToFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PersonModel"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PersonModel"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PersonModel"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/remove-persons": {
      "post": {
        "tags": [
          "Media",
          "File",
          "Person"
        ],
        "summary": "Removes persons from a file",
        "operationId": "RemovePersonsFromFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/add-custom-data": {
      "post": {
        "tags": [
          "Media",
          "File",
          "CustomData"
        ],
        "summary": "Adds custom metadata to a file",
        "operationId": "AddCustomDataToFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/add-albums": {
      "post": {
        "tags": [
          "Media",
          "File",
          "Album"
        ],
        "summary": "Adds albums to a file",
        "operationId": "AddAlbumsToFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/remove-albums": {
      "post": {
        "tags": [
          "Media",
          "File",
          "Album"
        ],
        "summary": "Removes albums from a file",
        "operationId": "RemoveAlbumsFromFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/status": {
      "put": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Updates the status of a file",
        "operationId": "UpdateFileStatus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "UpdateFileStatusModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaFileStatusModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "UpdateFileStatusModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaFileStatusModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "UpdateFileStatusModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaFileStatusModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/iptc": {
      "put": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Updates the iptc data of a file",
        "description": "\n        The following iptc tags are supported:\n        - ObjectType\n        - ObjectAttribute\n        - Title\n        - SubjectReference\n        - FixtureIdentifier\n        - LocationName\n        - SpecialInstructions\n        - Byline\n        - BylineTitle\n        - City\n        - SubLocation\n        - ProvinceState\n        - Country\n        - OriginalTransmissionReference\n        - Headline\n        - Credit\n        - Source\n        - CopyrightNotice\n        - Contact\n        - Caption\n        - LocalCaption\n        - CaptionWriter",
        "operationId": "UpdateFileIptc",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/move": {
      "post": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Move files to another folder",
        "operationId": "MoveFile",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveFilesModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveFilesModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveFilesModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/albums": {
      "get": {
        "tags": [
          "Media",
          "Album",
          "File"
        ],
        "summary": "AlbumIds From File Id",
        "operationId": "AlbumIdsFromFileId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/file/{id}/rename": {
      "put": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Rename a file",
        "operationId": "RenameFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "RenameFileModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RenameMediaFileModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "RenameFileModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RenameMediaFileModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "RenameFileModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RenameMediaFileModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/{id}/versions": {
      "get": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Get file versions",
        "operationId": "GetFileVersions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaVersionDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaVersionDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaVersionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/file/{id}/update-preview-iframe-url": {
      "put": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Add/Update preview iframe link to a file",
        "operationId": "AddUpdatePreviewIFrame",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "PreviewIframeUrlModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PreviewIframeUrlModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "PreviewIframeUrlModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PreviewIframeUrlModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "PreviewIframeUrlModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PreviewIframeUrlModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/file/custom-data": {
      "post": {
        "tags": [
          "Media",
          "File",
          "CustomData"
        ],
        "summary": "Get file custom data",
        "operationId": "GetFileCustomData",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaFileCustomDataDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaFileCustomDataDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaFileCustomDataDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/file/by-dataset-values": {
      "post": {
        "tags": [
          "Dataset",
          "File"
        ],
        "summary": "Gets files by dataset values.",
        "operationId": "GetFilesByDatasetValues",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "MediaFileByDatasetValuesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MediaFileByDatasetValuesModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "MediaFileByDatasetValuesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MediaFileByDatasetValuesModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "MediaFileByDatasetValuesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MediaFileByDatasetValuesModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/MediaFileDto"
                    }
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/MediaFileDto"
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/MediaFileDto"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/file-version/{versionId}/restore": {
      "post": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Restore a file version",
        "operationId": "RestoreFileVersion",
        "parameters": [
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/folder/{id}": {
      "get": {
        "tags": [
          "Media",
          "Folder"
        ],
        "summary": "Gets folder by id",
        "operationId": "GetFolder",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/folder/{id}/folders": {
      "get": {
        "tags": [
          "Media",
          "Folder"
        ],
        "summary": "Gets folders by mainFolderId",
        "operationId": "GetSubFolders",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "title": "FolderSortBy",
              "allOf": [
                {
                  "$ref": "#/components/schemas/MediaFolderSortBy"
                }
              ],
              "description": "CreatedAt = 0; Name = 1"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "title": "SortDirection",
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortDirection"
                }
              ],
              "description": "Ascending = 0; Descending = 1"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/folder/{id}/files": {
      "get": {
        "tags": [
          "Media",
          "Folder",
          "File"
        ],
        "summary": "Gets files by folderId",
        "operationId": "GetFolderFiles",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "title": "FileSortBy",
              "allOf": [
                {
                  "$ref": "#/components/schemas/MediaFileSortBy"
                }
              ],
              "description": "UploadDate = 0; RecordingDate = 1; FileName = 2"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "title": "SortDirection",
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortDirection"
                }
              ],
              "description": "Ascending = 0; Descending = 1"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/folder/create": {
      "post": {
        "tags": [
          "Media",
          "Folder"
        ],
        "summary": "Creates a new folder",
        "operationId": "CreateFolder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "CreateFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaFolderModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "CreateFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaFolderModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "CreateFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaFolderModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/folder/{id}/update": {
      "put": {
        "tags": [
          "Media",
          "Folder"
        ],
        "summary": "Updates folder",
        "operationId": "UpdateFolder",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "UpdateFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaFolderModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "UpdateFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaFolderModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "UpdateFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaFolderModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/folder/{id}/delete": {
      "delete": {
        "tags": [
          "Media",
          "Folder"
        ],
        "summary": "Deletes folder",
        "operationId": "DeleteFolder",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/folder/{id}/rename": {
      "put": {
        "tags": [
          "Media",
          "Folder"
        ],
        "summary": "Renames folder",
        "operationId": "RenameFolder",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "RenameFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RenameMediaFolderModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "RenameFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RenameMediaFolderModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "RenameFolderModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RenameMediaFolderModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/workspace": {
      "get": {
        "tags": [
          "Media",
          "Workspace"
        ],
        "summary": "Gets workspaces",
        "operationId": "GetWorkspaces",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/workspace/{id}": {
      "get": {
        "tags": [
          "Media",
          "Workspace"
        ],
        "summary": "Gets workspace by id",
        "operationId": "GetWorkspace",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/workspace/{id}/folders": {
      "get": {
        "tags": [
          "Media",
          "Workspace",
          "Folder"
        ],
        "summary": "Gets folders of workspace",
        "operationId": "GetWorkspaceFolders",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "title": "FolderSortBy",
              "allOf": [
                {
                  "$ref": "#/components/schemas/MediaFolderSortBy"
                }
              ],
              "description": "CreatedAt = 0; Name = 1"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "title": "SortDirection",
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortDirection"
                }
              ],
              "description": "Ascending = 0; Descending = 1"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFolderListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/workspace/{id}/files": {
      "get": {
        "tags": [
          "Media",
          "Workspace",
          "File"
        ],
        "summary": "Gets files of workspace",
        "operationId": "GetWorkspaceFiles",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "title": "FileSortBy",
              "allOf": [
                {
                  "$ref": "#/components/schemas/MediaFileSortBy"
                }
              ],
              "description": "UploadDate = 0; RecordingDate = 1; FileName = 2"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "title": "SortDirection",
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortDirection"
                }
              ],
              "description": "Ascending = 0; Descending = 1"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/workspace/create": {
      "post": {
        "tags": [
          "Media",
          "Workspace"
        ],
        "summary": "Creates workspace",
        "operationId": "CreateWorkspace",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "CreateWorkspaceModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaWorkspaceModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "CreateWorkspaceModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaWorkspaceModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "CreateWorkspaceModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateMediaWorkspaceModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaWorkspaceDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/workspace/{id}/update": {
      "put": {
        "tags": [
          "Media",
          "Workspace"
        ],
        "summary": "Updates workspace",
        "operationId": "UpdateWorkspace",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "UpdateWorkspaceModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaWorkspaceModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "UpdateWorkspaceModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaWorkspaceModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "UpdateWorkspaceModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateMediaWorkspaceModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/media/workspace/{id}/delete": {
      "delete": {
        "tags": [
          "Media",
          "Workspace"
        ],
        "summary": "Deletes workspace",
        "operationId": "DeleteWorkspace",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/account/profile": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get profile",
        "operationId": "GetProfile",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/search": {
      "post": {
        "tags": [
          "Media",
          "File",
          "Folder",
          "Album"
        ],
        "summary": "Searches for files, folders and albums",
        "operationId": "MediaSearch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "SearchModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MediaSearchModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "SearchModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MediaSearchModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "SearchModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MediaSearchModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaSearchResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaSearchResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaSearchResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/media/search/files": {
      "post": {
        "tags": [
          "Media",
          "File"
        ],
        "summary": "Searches for files",
        "operationId": "MediaSearchFiles",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "title": "SearchFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SearchMediaFilesModel"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "title": "SearchFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SearchMediaFilesModel"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "title": "SearchFilesModel",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SearchMediaFilesModel"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchMediaFilesResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchMediaFilesResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchMediaFilesResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CreateManyDatasetsModel": {
        "type": "object",
        "properties": {
          "typeId": {
            "type": "integer",
            "format": "int32"
          },
          "datasets": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": { }
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateMediaAlbumModel": {
        "title": "CreateAlbumModel",
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "mainAlbumId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateMediaFolderModel": {
        "title": "CreateFolderModel",
        "required": [
          "name",
          "workspaceId"
        ],
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "integer",
            "format": "int32"
          },
          "mainFolderId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateMediaWorkspaceModel": {
        "title": "CreateWorkspaceModel",
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomDownloadFileDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": true
          },
          "url": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CustomDownloadFileFormat": {
        "title": "CustomDownloadFileFormat",
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "Possible values: Jpeg = 0, Png = 1, Tiff = 2, Webp = 3, PreserveFileType = 4",
        "format": "int32"
      },
      "CustomDownloadModel": {
        "type": "object",
        "properties": {
          "settingsId": {
            "type": "integer",
            "format": "int32"
          },
          "fileIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        },
        "additionalProperties": false
      },
      "CustomDownloadSettingsDto": {
        "title": "CustomDownloadSettings",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": true
          },
          "format": {
            "title": "CustomDownloadFileFormat",
            "allOf": [
              {
                "$ref": "#/components/schemas/CustomDownloadFileFormat"
              }
            ],
            "description": "Possible values: Jpeg = 0, Png = 1, Tiff = 2, Webp = 3, PreserveFileType = 4",
            "readOnly": true
          },
          "size": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "quality": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "dpi": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "DatasetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "values": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DatasetPropertyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatasetPropertyType"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "DatasetPropertyType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "DatasetTypeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DatasetValueDto": {
        "type": "object",
        "properties": {
          "datasetId": {
            "type": "integer",
            "format": "int32"
          },
          "value": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DatasetsByFilesModel": {
        "title": "DatasetByFilesModel",
        "required": [
          "fileIds"
        ],
        "type": "object",
        "properties": {
          "fileIds": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        },
        "additionalProperties": false
      },
      "DownloadUrlSourceType": {
        "title": "DownloadUrlSourceType",
        "enum": [
          "CurrentVersion",
          "Version"
        ],
        "type": "string",
        "description": "Whether the ID is a file (its current version: the link always delivers the latest version) or a specific uploaded file version."
      },
      "FilesDatasetDto": {
        "title": "FilesDataset",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "values": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            }
          },
          "fileIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        },
        "additionalProperties": false
      },
      "FilesLicenseDto": {
        "title": "FilesLicense",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "title": "LicenseProvider",
            "allOf": [
              {
                "$ref": "#/components/schemas/LicenseProviderDto"
              }
            ],
            "description": "Provider is null for uncategorized licenses",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            }
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LicenseFileDto"
            }
          }
        },
        "additionalProperties": false
      },
      "GenerateDownloadUrlModel": {
        "title": "GenerateDownloadUrlModel",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "sourceType": {
            "title": "DownloadUrlSourceType",
            "allOf": [
              {
                "$ref": "#/components/schemas/DownloadUrlSourceType"
              }
            ],
            "description": "Whether the ID is a file (its current version: the link always delivers the latest version) or a specific uploaded file version."
          }
        },
        "additionalProperties": false
      },
      "GenerateImageTransformUrlModel": {
        "title": "GenerateImageTransformUrlModel",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "File ID (SourceType CurrentVersion) or file version ID (SourceType Version).",
            "format": "int32"
          },
          "sourceType": {
            "title": "ImageTransformUrlSourceType",
            "allOf": [
              {
                "$ref": "#/components/schemas/ImageTransformUrlSourceType"
              }
            ],
            "description": "Specifies whether the ID targets the current file version or a specific uploaded file version."
          },
          "width": {
            "type": "integer",
            "description": "Target width in pixels, at most 4000. 0 or omitted: derived from the aspect ratio.",
            "format": "int32",
            "nullable": true
          },
          "height": {
            "type": "integer",
            "description": "Target height in pixels, at most 4000. 0 or omitted: derived from the aspect ratio.",
            "format": "int32",
            "nullable": true
          },
          "cropX": {
            "type": "integer",
            "description": "Left edge of the crop box in pixels of the source, applied before resizing. Set all four crop values or none. Not supported for SVG.",
            "format": "int32",
            "nullable": true
          },
          "cropY": {
            "type": "integer",
            "description": "Top edge of the crop box in pixels of the source.",
            "format": "int32",
            "nullable": true
          },
          "cropWidth": {
            "type": "integer",
            "description": "Width of the crop box in pixels of the source; CropX + CropWidth must not exceed the source width.",
            "format": "int32",
            "nullable": true
          },
          "cropHeight": {
            "type": "integer",
            "description": "Height of the crop box in pixels of the source; CropY + CropHeight must not exceed the source height.",
            "format": "int32",
            "nullable": true
          },
          "resizeType": {
            "title": "ImageTransformUrlResizeType",
            "allOf": [
              {
                "$ref": "#/components/schemas/ImageTransformUrlResizeType"
              }
            ],
            "description": "Specifies the resize type for the image transform URL. The options are:\n- Fill: Returns the exact requested box, cropping as needed.\n  Example: source 120x80, request 90x90 -> result 90x90.\n- Fit: Preserves aspect ratio and keeps the full image visible within the requested box.\n  Example: source 120x80, request 100x200 -> result 100x67.\n- Auto: Returns the exact requested box when source and target orientation match, otherwise preserves aspect ratio to keep the full image visible.\n  Example: source 120x80, request 90x60 -> result 90x60.\n  Example: source 120x80, request 40x90 -> result 40x27.\n- Force: Forces the exact requested size without preserving aspect ratio.\n  Example: source 120x80, request 100x200 -> result 100x200.\nWith only one dimension, the other follows the aspect ratio of the source (or crop); Auto then behaves like Fit."
          },
          "format": {
            "title": "ImageTransformUrlFormat",
            "allOf": [
              {
                "$ref": "#/components/schemas/ImageTransformUrlFormat"
              }
            ],
            "description": "Output format. Possible values: Jpeg, Png, Webp, Avif. Png, Webp and Avif keep transparency (e.g. of SVG logos); Jpeg does not."
          }
        },
        "additionalProperties": false
      },
      "ImageTransformUrlFormat": {
        "title": "ImageTransformUrlFormat",
        "enum": [
          "Jpeg",
          "Png",
          "Webp",
          "Avif"
        ],
        "type": "string",
        "description": "Output format. Possible values: Jpeg, Png, Webp, Avif. Png, Webp and Avif keep transparency (e.g. of SVG logos); Jpeg does not."
      },
      "ImageTransformUrlResizeType": {
        "title": "ImageTransformUrlResizeType",
        "enum": [
          "Fill",
          "Fit",
          "Auto",
          "Force"
        ],
        "type": "string",
        "description": "Specifies the resize type for the image transform URL. The options are:\n- Fill: Returns the exact requested box, cropping as needed.\n  Example: source 120x80, request 90x90 -> result 90x90.\n- Fit: Preserves aspect ratio and keeps the full image visible within the requested box.\n  Example: source 120x80, request 100x200 -> result 100x67.\n- Auto: Returns the exact requested box when source and target orientation match, otherwise preserves aspect ratio to keep the full image visible.\n  Example: source 120x80, request 90x60 -> result 90x60.\n  Example: source 120x80, request 40x90 -> result 40x27.\n- Force: Forces the exact requested size without preserving aspect ratio.\n  Example: source 120x80, request 100x200 -> result 100x200.\nWith only one dimension, the other follows the aspect ratio of the source (or crop); Auto then behaves like Fit."
      },
      "ImageTransformUrlSourceType": {
        "title": "ImageTransformUrlSourceType",
        "enum": [
          "CurrentVersion",
          "Version"
        ],
        "type": "string",
        "description": "Specifies whether the ID targets the current file version or a specific uploaded file version."
      },
      "LicenseFileDto": {
        "title": "LicenseFile",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LicenseProviderDto": {
        "title": "LicenseProvider",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "LicensesByFilesModel": {
        "title": "LicensesByFilesModel",
        "required": [
          "fileIds"
        ],
        "type": "object",
        "properties": {
          "fileIds": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        },
        "additionalProperties": false
      },
      "MediaAlbumDto": {
        "title": "Album",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "description": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "mainAlbumId": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "path": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaAlbumListResponse": {
        "title": "AlbumListResponse",
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaAlbumDto"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "MediaAlbumSortBy": {
        "title": "AlbumSortBy",
        "enum": [
          "CreatedAt",
          "Name"
        ],
        "type": "string",
        "description": "CreatedAt = 0; Name = 1"
      },
      "MediaCustomDataDto": {
        "title": "CustomDataDto",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "selectedListItems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaFileByDatasetValuesModel": {
        "title": "MediaFileByDatasetValuesModel",
        "required": [
          "values"
        ],
        "type": "object",
        "properties": {
          "propertyId": {
            "type": "integer",
            "format": "int32"
          },
          "values": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "MediaFileCategory": {
        "title": "FileCategory",
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "description": "Image = 0, Text = 1, Video = 2, Audio = 3, Vector = 4, Adobe = 5, Presentation = 6, Misc = 7",
        "format": "int32"
      },
      "MediaFileCustomDataDto": {
        "title": "FileCustomDataDto",
        "type": "object",
        "properties": {
          "fileId": {
            "type": "integer",
            "format": "int32"
          },
          "customData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaCustomDataDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaFileDto": {
        "title": "File",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "fileName": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "fileSize": {
            "type": "integer",
            "format": "int64"
          },
          "uploadDate": {
            "type": "string",
            "format": "date-time"
          },
          "originalUrl": {
            "type": "string"
          },
          "thumbnails": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "pdfUrl": {
            "type": "string",
            "nullable": true
          },
          "width": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "height": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "metaData": {
            "title": "FileMetaData",
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaFileMetaDataDto"
              }
            ],
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "workspaceId": {
            "type": "integer",
            "format": "int32"
          },
          "folderId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "checksum": {
            "type": "string",
            "nullable": true
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "fullMetaData": {
            "title": "FileExtendedMetaDataDto",
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaFileExtendedMetaDataDto"
              }
            ],
            "nullable": true
          },
          "previewIFrameUrl": {
            "type": "string",
            "nullable": true
          },
          "customData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaCustomDataDto"
            },
            "nullable": true
          },
          "currentVersionId": {
            "type": "integer",
            "format": "int32"
          },
          "versionCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MediaFileExtendedMetaDataDto": {
        "title": "FileExtendedMetaDataDto",
        "type": "object",
        "properties": {
          "iptc": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "exif": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "xmp": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaFileListResponse": {
        "title": "FileListResponse",
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaFileDto"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "MediaFileMetaDataDto": {
        "title": "FileMetaData",
        "type": "object",
        "properties": {
          "copyright": {
            "type": "string",
            "nullable": true
          },
          "recordingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaFileSortBy": {
        "title": "FileSortBy",
        "enum": [
          "UploadDate",
          "RecordingDate",
          "FileName"
        ],
        "type": "string",
        "description": "UploadDate = 0; RecordingDate = 1; FileName = 2"
      },
      "MediaFileStatus": {
        "title": "FileStatus",
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Approved = 0, InProgress = 1, OnHold = 2",
        "format": "int32"
      },
      "MediaFolderDto": {
        "title": "Folder",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "description": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "workspaceId": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "mainFolderId": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaFolderListResponse": {
        "title": "FolderListResponse",
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaFolderDto"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "MediaFolderSortBy": {
        "title": "FolderSortBy",
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "CreatedAt = 0; Name = 1",
        "format": "int32"
      },
      "MediaSearchFileType": {
        "title": "SearchFileType",
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "Image = 0; Video = 1; Document = 2; Misc = 3",
        "format": "int32"
      },
      "MediaSearchImageOrientation": {
        "title": "SearchImageOrientation",
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Square = 0; Landscape = 1; Portrait = 2",
        "format": "int32"
      },
      "MediaSearchModel": {
        "title": "SearchModel",
        "required": [
          "searchTerms"
        ],
        "type": "object",
        "properties": {
          "skip": {
            "type": "integer",
            "format": "int32"
          },
          "take": {
            "maximum": 100,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "title": "SearchSortBy",
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaSearchSortBy"
              }
            ],
            "description": "Relevance = 0 (sorts by number of matches with the search terms); UploadDate = 1; RecordingDate = 2; FileName = 3"
          },
          "sortDirection": {
            "title": "SortDirection",
            "allOf": [
              {
                "$ref": "#/components/schemas/SortDirection"
              }
            ],
            "description": "Ascending = 0; Descending = 1"
          },
          "searchTerms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "searchTermsOperator": {
            "title": "SearchOperator",
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaSearchOperator"
              }
            ],
            "description": "And = 0; Or = 1"
          },
          "uploadDateFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "uploadDateUntil": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "recordingDateFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "recordingDateUntil": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaSearchType"
            },
            "description": "Uses every available type if empty.",
            "nullable": true
          },
          "fileTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaSearchFileType"
            },
            "description": "Uses every available file type if empty.",
            "nullable": true
          },
          "folderId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "workspaceId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "orientation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaSearchImageOrientation"
              }
            ],
            "nullable": true
          },
          "hasPreviewIFrameUrl": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaSearchOperator": {
        "title": "SearchOperator",
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "And = 0; Or = 1",
        "format": "int32"
      },
      "MediaSearchResponse": {
        "title": "SearchResponse",
        "type": "object",
        "properties": {
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaFileDto"
            },
            "nullable": true
          },
          "albums": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaAlbumDto"
            },
            "nullable": true
          },
          "folders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaFolderDto"
            },
            "nullable": true
          },
          "total": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "MediaSearchSortBy": {
        "title": "SearchSortBy",
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "Relevance = 0 (sorts by number of matches with the search terms); UploadDate = 1; RecordingDate = 2; FileName = 3",
        "format": "int32"
      },
      "MediaSearchType": {
        "title": "SearchType",
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "File = 0; Folder = 1; Album = 2",
        "format": "int32"
      },
      "MediaVersionDto": {
        "title": "FileVersion",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "fileId": {
            "type": "integer",
            "format": "int32"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "fileName": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "fileSize": {
            "type": "integer",
            "format": "int64"
          },
          "uploadDate": {
            "type": "string",
            "format": "date-time"
          },
          "originalUrl": {
            "type": "string"
          },
          "thumbnails": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "pdfUrl": {
            "type": "string",
            "nullable": true
          },
          "width": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "height": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "metaData": {
            "title": "FileMetaData",
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaFileMetaDataDto"
              }
            ],
            "nullable": true
          },
          "checksum": {
            "type": "string",
            "nullable": true
          },
          "fullMetaData": {
            "title": "FileExtendedMetaDataDto",
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaFileExtendedMetaDataDto"
              }
            ],
            "nullable": true
          },
          "previewIFrameUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaWorkspaceDto": {
        "title": "Workspace",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaWorkspaceListResponse": {
        "title": "WorkspaceListResponse",
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaWorkspaceDto"
            }
          },
          "total": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "MoveFilesModel": {
        "type": "object",
        "properties": {
          "fileIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "folderId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "workspaceId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "OrganizationDto": {
        "title": "Organization",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "PersonModel": {
        "title": "Person",
        "required": [
          "firstname",
          "lastname"
        ],
        "type": "object",
        "properties": {
          "identifier": {
            "title": "Identifier",
            "type": "string",
            "description": "Unique identifier of the person",
            "nullable": true
          },
          "firstname": {
            "minLength": 1,
            "type": "string"
          },
          "lastname": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "age": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PreviewIframeUrlModel": {
        "title": "PreviewIframeUrlModel",
        "type": "object",
        "properties": {
          "previewIframeUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProfileDto": {
        "title": "Profile",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "userName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "organization": {
            "title": "Organization",
            "allOf": [
              {
                "$ref": "#/components/schemas/OrganizationDto"
              }
            ],
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "RenameMediaFileModel": {
        "title": "RenameFileModel",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RenameMediaFolderModel": {
        "title": "RenameFolderModel",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchMediaFileCustomDateDto": {
        "title": "SearchFileCustomDateDto",
        "type": "object",
        "properties": {
          "min": {
            "type": "string",
            "format": "date-time"
          },
          "max": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "SearchMediaFilesCustomDateModel": {
        "title": "SearchFilesCustomDateModel",
        "type": "object",
        "properties": {
          "min": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "max": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchMediaFilesModel": {
        "title": "SearchFilesModel",
        "type": "object",
        "properties": {
          "skip": {
            "type": "integer",
            "format": "int32"
          },
          "take": {
            "maximum": 100,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "title": "SearchSortBy",
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaSearchSortBy"
              }
            ],
            "description": "Relevance = 0 (sorts by number of matches with the search terms); UploadDate = 1; RecordingDate = 2; FileName = 3"
          },
          "sortDirection": {
            "title": "SortDirection",
            "allOf": [
              {
                "$ref": "#/components/schemas/SortDirection"
              }
            ],
            "description": "Ascending = 0; Descending = 1"
          },
          "query": {
            "type": "string",
            "nullable": true
          },
          "uploadDateFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "uploadDateUntil": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "recordingDateFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "recordingDateUntil": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "folderId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "workspaceId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "orientation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaSearchImageOrientation"
              }
            ],
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "extension": {
            "type": "string",
            "nullable": true
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaFileCategory"
            },
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "customLists": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "nullable": true
            },
            "nullable": true
          },
          "customDates": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/SearchMediaFilesCustomDateModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchMediaFilesResponse": {
        "title": "SearchFilesResponse",
        "type": "object",
        "properties": {
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaFileDto"
            },
            "nullable": true
          },
          "total": {
            "type": "integer",
            "format": "int64"
          },
          "tags": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64",
              "nullable": true
            },
            "nullable": true
          },
          "customLists": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "integer",
                "format": "int64"
              },
              "nullable": true
            },
            "nullable": true
          },
          "customDates": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/SearchMediaFileCustomDateDto"
            },
            "nullable": true
          },
          "categories": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64",
              "nullable": true
            },
            "description": "Keys: Image = 0, Text = 1, Video = 2, Audio = 3, Vector = 4, Adobe = 5, Presentation = 6, Misc = 7",
            "nullable": true
          },
          "extensions": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64",
              "nullable": true
            },
            "nullable": true
          },
          "contentTypes": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64",
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SortDirection": {
        "title": "SortDirection",
        "enum": [
          "Ascending",
          "Descending"
        ],
        "type": "string",
        "description": "Ascending = 0; Descending = 1"
      },
      "UpdateDatasetModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "values": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateMediaAlbumModel": {
        "title": "UpdateAlbumModel",
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateMediaFileStatusModel": {
        "title": "UpdateFileStatusModel",
        "type": "object",
        "properties": {
          "status": {
            "title": "FileStatus",
            "allOf": [
              {
                "$ref": "#/components/schemas/MediaFileStatus"
              }
            ],
            "description": "Approved = 0, InProgress = 1, OnHold = 2"
          }
        },
        "additionalProperties": false
      },
      "UpdateMediaFolderModel": {
        "title": "UpdateFolderModel",
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateMediaWorkspaceModel": {
        "title": "UpdateWorkspaceModel",
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpsertManyDatasetsModel": {
        "type": "object",
        "properties": {
          "typeId": {
            "type": "integer",
            "format": "int32"
          },
          "identifierPropertyId": {
            "type": "integer",
            "format": "int32"
          },
          "datasets": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": { }
            },
            "nullable": true
          },
          "deleteMissing": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "OpenIdConnect": {
        "type": "openIdConnect",
        "openIdConnectUrl": "/.well-known/openid-configuration"
      },
      "Api-Key": {
        "type": "apiKey",
        "name": "X-API-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "OpenIdConnect": [
        "readAccess"
      ]
    },
    {
      "Api-Key": [
        "readAccess"
      ]
    }
  ]
}