Create a Request
Let's consider an example where we need to export all outputs from all account projects for two time periods. We'll include all projects that were modified in February 2023 and also those modified at a specific hour in June 2023.
To create a request, set up the API APP, and review the information about creating JSON, ZIP and TSV requests.
Here’s what your request should look like:
POST https://hub.celtra.io/api/export
Authorization: Basic <your API App ID> <your API App Secret>
Content-Type: application/json; charset=utf-8
{
"filters": {
"designFile": {
"id": ["mockedDesignFileId"],
"lastModificationTimestamp": [
{
"gt": "2023-02-01",
"lte": "2023-02-28"
},
{
"gte": "2023-06-01 17:00:00",
"lt": "2023-06-01 18:00:00"
}
]
}
}
}
Replace
"mockedDesignFileId"
with a valid ID of a project you have access to.The time ranges are defined differently by using the gt/lte or lt/gte options. Learn more here about the time range values.