LandingLens API

A RESTful API for using LandingLens programmatically, with predictable resource-oriented URLs and JSON-encoded responses. It covers creating projects, uploading images, creating classes, auto-splitting datasets, training models and reading training metrics and confusion matrices, managing dataset snapshots and exports, project metadata and tags, and deploying trained models to LandingAI-hosted cloud endpoints.

OpenAPI Specification

landingai-landinglens-openapi-original.json Raw ↑
{"openapi":"3.1.0","info":{"title":"LandingLens API","description":"\n**LandingLens API** is a RESTful API that allows you to use [LandingLens](https://app.landing.ai) programmatically.\nOur API has predictable resource-oriented URLs, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.\n\nYou can use the LandingLens API to programmatically perform many tasks in LandingLens, including:\n* Create projects\n* Upload images to projects\n* Create classes\n* Train models\n* Deploy models to cloud-endpoints hosted by LandingAI (cloud deployment)\n\n## Tutorial\nCheck out this [tutorial](https://landing-ai.github.io/public-rest-api/tutorial/) to learn the basic workflow for using the LandingLens APIs.\n","version":"0.1.0"},"servers":[{"url":"https://api.landing.ai","description":"Production environment"}],"paths":{"/v1/projects/{project_id}/images/{image_id}":{"get":{"tags":["Image"],"summary":"Get Project Metadata","operationId":"get_project_metadata_v1_projects__project_id__images__image_id__get","parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","title":"Image Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_ImageDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/images":{"post":{"tags":["Image"],"summary":"Upload Image","operationId":"upload_image_v1_projects__project_id__images_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_image_v1_projects__project_id__images_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_Image_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects":{"get":{"tags":["Project"],"summary":"Get Projects","operationId":"get_projects_v1_projects_get","parameters":[{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Project"],"summary":"Create Project","operationId":"create_project_v1_projects_post","parameters":[{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}":{"get":{"tags":["Project"],"summary":"Get Project","operationId":"get_project_v1_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/active":{"put":{"tags":["Project"],"summary":"Update Active Project","operationId":"update_active_project_v1_projects__project_id__active_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsActiveProject"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/train":{"post":{"tags":["Training"],"summary":"Create Training Job","operationId":"create_training_job_v1_projects__project_id__train_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TrainItem"},{"type":"null"}],"title":"Training Config Request"},"examples":{"classification":{"summary":"train classification model","value":{"model":{"architecture":"ConvNext-[16M]","hyperParams":{"epochs":20}},"transforms":{"preprocessing":[{"rescaleWithPadding":{"height":896,"width":1280,"paddingValue":0}}],"augmentations":[{"horizontalFlip":{"p":0.5}},{"randAugment":{"numberTransforms":2,"magnitude":4}}]}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_TrainingResponseData_"},"example":{"data":"edcfea45-33b5-4a52-8625-94d156e63fb3"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Training"],"summary":"Get Training List","operationId":"get_training_list_v1_projects__project_id__train_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_list_TrainingItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/train/{training_id}/status":{"get":{"tags":["Training"],"summary":"Get Training Status","operationId":"get_training_status_v1_projects__project_id__train__training_id__status_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"training_id","in":"path","required":true,"schema":{"type":"string","title":"Training Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_TrainingStatus_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/train/architectures":{"get":{"tags":["Training"],"summary":"Get Train Archs","operationId":"get_train_archs_v1_projects__project_id__train_architectures_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_list_ArchItem__"},"examples":{"classification":{"summary":"classification project","value":{"data":[{"name":"ConvNext-[16M]"},{"name":"ConvNext-[29M]"}]}},"object_detection":{"summary":"object detection project","value":{"data":[{"name":"RtmDet-[9M]"},{"name":"RepPoints-[20M]"},{"name":"RepPoints-[37M]"}]}},"segmentation":{"summary":"segmentation project","value":{"data":[{"name":"SegFormer-[14M]"},{"name":"FastVit-[14M]"}]}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/classes":{"post":{"tags":["Classes"],"summary":"Create Classes","operationId":"create_classes_v1_projects__project_id__classes_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ClassMap"},"title":"Classes"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefectClassResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Classes"],"summary":"Get Classes","operationId":"get_classes_v1_projects__project_id__classes_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefectClassResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/autosplit":{"post":{"tags":["Training"],"summary":"Auto Split","operationId":"auto_split_v1_projects__project_id__autosplit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoSplitBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/models":{"get":{"tags":["Model"],"summary":"Get Models","operationId":"get_models_v1_projects__project_id__models_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/models/{model_id}":{"get":{"tags":["Model"],"summary":"Get Single Model","operationId":"get_single_model_v1_projects__project_id__models__model_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Model Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/models/{model_id}/download":{"post":{"tags":["Model"],"summary":"Get Model Download Url","operationId":"get_model_download_url_v1_projects__project_id__models__model_id__download_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Model Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelDownloadRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/deployments":{"post":{"tags":["Deployment"],"summary":"Create Deployment","description":"This endpoint creates a deployment, which is an instance for running a\nmodel and performing predictions.\n\nTo create a deployment, you only need to provide a unique name. Upon\nsuccessful creation, the endpoint will return an HTTP URL where you can\nsend requests for predictions (also known as inferences).\n\nThe deployment name cannot be changed after creation.\n\nHere's a breakdown of the deployment creation options:\n\n**Model** (Optional): You can either:\n\n- Provide the model data during deployment creation, making it ready to use\nimmediately.\n- Upload a model to the deployment later and then use it for predictions.\n\n\n**Threshold** (Optional):\n\n- Specify a custom threshold value for your\npredictions.\n- If not provided, the default value used during model training will be\napplied.","operationId":"create_deployment_v1_projects__project_id__deployments_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_DeploymentItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Deployment"],"summary":"Get Deployments","operationId":"get_deployments_v1_projects__project_id__deployments_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_list_DeploymentItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/deployments/{deployment_id}":{"put":{"tags":["Deployment"],"summary":"Update Deployment","description":"You can update a deployment by providing one or both of the following:\n- A new model to be used for predictions.\n- A new threshold value to be used for classifying predictions.\n\nAt least one of these values must be provided for a successful update.\n\nUpdating the threshold value with a model already deployed has the\nfollowing behavior:\n- If you specify a new threshold value, it will override the model's\ndefault threshold.\n- If you don't specify a new threshold value, the model's default\nthreshold will be used.\n\nUpdating the deployment with a new model affects the threshold value as\nfollows:\n- If you specify a new threshold value along with the new model, the new\nthreshold will be used.\n- If you don't specify a new threshold value, the threshold associated\nwith the new model will be used.","operationId":"update_deployment_v1_projects__project_id__deployments__deployment_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Deployment Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentUpdateInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_DeploymentItem_"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Deployment"],"summary":"Get Single Deployment","operationId":"get_single_deployment_v1_projects__project_id__deployments__deployment_id__get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Deployment Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_DeploymentItem_"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/train/{training_id}/results/metrics":{"get":{"tags":["Training"],"summary":"Get Metrics Summary For All Splits","operationId":"get_metrics_summary_for_all_splits_v1_projects__project_id__train__training_id__results_metrics_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"training_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Training Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/train/{training_id}/results/confusion-matrix":{"get":{"tags":["Training"],"summary":"Get Confusion Matrix For All Splits","operationId":"get_confusion_matrix_for_all_splits_v1_projects__project_id__train__training_id__results_confusion_matrix_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"training_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Training Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfusionMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/dataset/snapshots":{"get":{"tags":["Snapshot"],"summary":"List Snapshots","operationId":"list_snapshots_v1_projects__project_id__dataset_snapshots_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_list_SnapshotItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/dataset/snapshots/{snapshot_version}/export":{"post":{"tags":["Snapshot"],"summary":"Post Snapshot Export","operationId":"post_snapshot_export_v1_projects__project_id__dataset_snapshots__snapshot_version__export_post","parameters":[{"name":"snapshot_version","in":"path","required":true,"schema":{"type":"integer","title":"Snapshot Version"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Body_post_snapshot_export_v1_projects__project_id__dataset_snapshots__snapshot_version__export_post"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_SnapshotExportItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Snapshot"],"summary":"Get Snapshot Export","operationId":"get_snapshot_export_v1_projects__project_id__dataset_snapshots__snapshot_version__export_get","parameters":[{"name":"snapshot_version","in":"path","required":true,"schema":{"type":"integer","title":"Snapshot Version"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SnapshotInput"},{"type":"null"}],"title":"Snapshot Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_SnapshotExportItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/dataset/snapshots/{snapshot_version}/metadata":{"get":{"tags":["Snapshot"],"summary":"Get Snapshot Metadata","operationId":"get_snapshot_metadata_v1_projects__project_id__dataset_snapshots__snapshot_version__metadata_get","parameters":[{"name":"snapshot_version","in":"path","required":true,"schema":{"type":"integer","title":"Snapshot Version"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SnapshotInput"},{"type":"null"}],"title":"Snapshot Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_SnapshotExportItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/metadata":{"get":{"tags":["Metadata"],"summary":"Get Project Metadata","operationId":"get_project_metadata_v1_projects__project_id__metadata_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_list_MetadataItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Metadata"],"summary":"Create Metadata","operationId":"create_metadata_v1_projects__project_id__metadata_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_MetadataItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/metadata/{metadata_id}":{"post":{"tags":["Metadata"],"summary":"Update Metadata","operationId":"update_metadata_v1_projects__project_id__metadata__metadata_id__post","parameters":[{"name":"metadata_id","in":"path","required":true,"schema":{"type":"integer","title":"Metadata Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_MetadataItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/images/metadata":{"post":{"tags":["Image"],"summary":"Append Metadata To Media List","operationId":"append_metadata_to_media_list_v1_projects__project_id__images_metadata_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageMetadataAssign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResponse_list_ImageMetadata__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/images/{image_id}/metadata":{"post":{"tags":["Image"],"summary":"Replace image metadata","operationId":"update_media_metadata_v1_projects__project_id__images__image_id__metadata_post","parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","title":"Image Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":60,"title":"Timeout"}},{"name":"apikey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}}],"requestBody":{"required":true,"content":{"application/json"

# --- truncated at 32 KB (55 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/landingai/refs/heads/main/openapi/landingai-landinglens-openapi-original.json