{
  "opencollection": "1.0.0",
  "info": {
    "name": "Leonardo.AI 3D Model Assets Dataset API",
    "version": "v1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Dataset",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a Dataset",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cloud.leonardo.ai/api/rest/v1/datasets",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint creates a new dataset"
        },
        {
          "info": {
            "name": "Get a Single Dataset by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://cloud.leonardo.ai/api/rest/v1/datasets/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the dataset to return."
              }
            ]
          },
          "docs": "This endpoint gets the specific dataset"
        },
        {
          "info": {
            "name": "Delete a Single Dataset by ID",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://cloud.leonardo.ai/api/rest/v1/datasets/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the dataset to delete."
              }
            ]
          },
          "docs": "This endpoint deletes the specific dataset"
        },
        {
          "info": {
            "name": "Upload dataset image",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cloud.leonardo.ai/api/rest/v1/datasets/:datasetId/upload",
            "params": [
              {
                "name": "datasetId",
                "value": "",
                "type": "path",
                "description": "_\"datasetId\" is required"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint returns presigned details to upload a dataset image to S3"
        },
        {
          "info": {
            "name": "Upload a Single Generated Image to a Dataset",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cloud.leonardo.ai/api/rest/v1/datasets/:datasetId/upload/gen",
            "params": [
              {
                "name": "datasetId",
                "value": "",
                "type": "path",
                "description": "The ID of the dataset to upload the image to."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint will upload a previously generated image to the dataset"
        }
      ]
    }
  ],
  "bundled": true
}