Query parameters
-
Sort string. Must be in the form
field:order.fieldmay be one of: id, filename, size, created, or modified.ordermay be one of -1 for descending or 1 for ascending. Resources are sorted in descending order by id by default. -
Query string. See search query syntax for details. Supported search fields are: id, and filename.
GET
/projects/{projectId}/assets
curl \
--request GET 'https://api.metafold3d.com/projects/{projectId}/assets' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
{
"id": "123",
"size": 262144,
"job_id": null,
"created": "2006-01-02T22:04:05+00:00",
"checksum": "sha256:2d063a84b13e5b23730a509cbb6ba42534acde451249a0b7409172a4f8814ef0",
"filename": "part.stl",
"modified": "2006-01-02T22:04:05+00:00",
"project_id": "123"
}
]
Response examples (400)
{
"code": 400,
"name": "Bad Request",
"description": "Expected parameter \"foo\""
}
Response examples (401)
{
"code": 401,
"name": "Unauthorzed",
"description": "Token has expired"
}