File API
Upload a file. Returns metadata only, never the bytes. Uploading identical bytes under the same name returns the existing version instead of creating a new one.
Changed onpost/rest/api/v1/projects/{projectId}/files
Request
- Base URLhttps://api.metacopier.io
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdstring uuid required
Query parameters
typestring required
Request body multipart/form-data
Response
Created
Example response
{
"extension": "ex5",
"fileName": "MyTrendEA.ex5",
"fileType": "EA_MT5",
"name": "MyTrendEA",
"referencedBy": [
{
"accountAlias": "FTMO 100k",
"label": "MyTrendEA on EURUSD M15"
}
],
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"sizeBytes": 412160,
"version": 3
}Changes
- info
endpoint added
- info