Upload asset to project with the given data
POST
/projects/{projectId}/assets
curl \
--request POST 'https://api.metafold3d.com/projects/{projectId}/assets' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: multipart/form-data"
Response examples (201)
{
"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"
}