Skip to content

Upload EA file

About

Uploads expert advisor file

PUT /users/current/accounts/:accountId/expert-advisors/:expertId/file

For more information see swagger documentation

Headers

Name Type Required Description
auth-token string Yes Authorization token. See Authentication and authorization

Path parameters

Name Type Required Description
accountId string Yes MetaTrader account id
expertId string Yes Expert advisor id

Body

Name Type Required Description
file File Yes Expert advisor file

Responses:

  • 204 - File uploaded successfully
  • 400 - File is required. Response schema: Error
  • 401 - Authorization failed. Response schema: Error
  • 404 - MetaTrader account or expert advisor with specified id not found. Response schema: Error

Examples

Example request:

curl -X PUT --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'auth-token: token' 'https://mt-provisioning-api-v1.project-stock.v3.agiliumlabs.cloud/users/current/accounts/7f18b2a0-1e8f-452c-9a63-4fffcc1ba81f/expert-advisors/test/file'