Upload Assets
Upload assets to project
OpenAPI spec
Example
curl -i -X POST \ 17:52:24
-H "Authorization: Bearer rJURvA6XuuHxG5RHauqR1yy64JQcTfGu" \
-F "files=@/file/path/playerOne.jpeg" \
-F "files=@/file/path/playerTwo.webp" \
https://environment.monterosa.cloud/api/v2/projects/2dae6dc6-c2c5-4220-b69d-4bda57f79bf2/assets
{
"data": [
{
"attributes": {
"created_at": "2023-12-21T18:01:14.981699+01:00",
"file_name": "playerOne.jpeg",
"image_height": 582,
"image_width": 692,
"mime_type": "image/jpeg",
"name": "playerOne.jpeg",
"path": "testtest/8f/8f735f8d-d959-4459-9b92-7099dddfa9f8/orig",
"size": 186691,
"thumbnail_path": "testtest/8f/8f735f8d-d959-4459-9b92-7099dddfa9f8/thumbnail"
},
"id": "8f735f8d-d959-4459-9b92-7099dddfa9f8",
"type": "assets"
},
{
"attributes": {
"created_at": "2023-12-21T18:01:15.201353+01:00",
"file_name": "playerTwo.webp",
"image_height": 423,
"image_width": 640,
"mime_type": "image/webp",
"name": "playerTwo.webp",
"path": "testtest/a0/a04c3022-4769-4956-b4a2-dd6f229a42ef/orig",
"size": 69201,
"thumbnail_path": "testtest/a0/a04c3022-4769-4956-b4a2-dd6f229a42ef/thumbnail"
},
"id": "a04c3022-4769-4956-b4a2-dd6f229a42ef",
"type": "assets"
}
]
}