{ "opencollection": "1.0.0", "info": { "name": "YOOBIC Public Answers Custom Model Instances - Datasets API", "version": "1.0" }, "items": [ { "info": { "name": "Custom Model Instances - Datasets", "type": "folder" }, "items": [ { "info": { "name": "Export", "type": "http" }, "http": { "method": "GET", "url": "https:///public/api/custom-model-instances/export?custom_model_id=:custom_model_id&type=:type&filter=:filter", "headers": [ { "name": "Accept", "value": "application/json" } ], "params": [ { "name": "custom_model_id", "value": "54ab03c6546847ee0d37143b", "type": "path", "description": "The inventory for all instances of this export" }, { "name": "type", "value": "csv", "type": "path", "description": "The type of file, either `csv` (default value) or `excel`" }, { "name": "filter", "value": "{}", "type": "query", "description": "A valid JSON filter object (does not accept a `fields` filter)" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Export all results as a file. \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource." }, { "info": { "name": "Import", "type": "http" }, "http": { "method": "POST", "url": "https:///public/api/custom-model-instances/import?custom_model_id=:custom_model_id&type=:type", "headers": [ { "name": "Content-Disposition", "value": "form-data; name=\"file\"; filename=\"file.csv\"" } ], "params": [ { "name": "custom_model_id", "value": "54ab03c6546847ee0d37143b", "type": "path", "description": "The inventory for all instances of this import" }, { "name": "type", "value": "csv", "type": "path", "description": "The type of file, either `csv` (default value) or `excel`" } ] }, "docs": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field | Type | Required | Readonly | OrderBy | Description |\n|-----------------------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`custom_model_instances_id` | string | | | | Unique identifier |" } ] } ], "bundled": true }