curl -sS -X POST "$BMA_BASE_URL/v1/files" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"id": "<string>",
"created_at": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"type": "file",
"downloadable": true,
"expires_at": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}files
Upload File
POST
/
v1
/
files
curl -sS -X POST "$BMA_BASE_URL/v1/files" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"id": "<string>",
"created_at": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"type": "file",
"downloadable": true,
"expires_at": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}본문
multipart/form-data
응답
Success.