GET /projects/{projectId}/assets

List assets in project

Path parameters

  • projectId string Required

    Project ID

Query parameters

  • sort string

    Sort string. Must be in the form field:order. field may be one of: id, filename, size, created, or modified. order may be one of -1 for descending or 1 for ascending. Resources are sorted in descending order by id by default.

  • q string

    Query string. See search query syntax for details. Supported search fields are: id, and filename.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string Required
    • filename string Required
    • size integer Required

      Size of file in bytes

      Minimum value is 0.

    • checksum string Required

      SHA-256 checksum of file contents

    • created string Required

      ISO 8601 datetime

    • modified string Required

      ISO 8601 datetime

    • project_id string Required

      Project ID

    • job_id string | null Required

      Job ID that created this asset, if any

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code integer

      HTTP response code

    • name string

      Status text corresponding to the HTTP response code

    • description string

      Detailed error message

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code integer

      HTTP response code

    • name string

      Status text corresponding to the HTTP response code

    • description string

      Detailed error message

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"
}