Skip to content

Create new provisioning profile

About

Creates a provisioning profile for MetaTrader

POST /users/current/provisioning-profiles

For more information see swagger documentation

Headers

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

Body

Name Type Required Description
name string Yes User-defined provisioning profile name
version integer Yes MetaTrader version, enum: 4, 5
brokerTimezone string Yes Broker timezone from Time Zone Database
brokerDSTSwitchTimezone string Yes Timezone according to which daylight saving time switch happens on broker server

Responses

  • 201 - Provision profile created successfully. Schema:
Name Type Required Description
id string Yes Created provisioning profile id
  • 400 - Wrong version of MetaTrader (not 4 or 5). Response schema: Error
  • 401 - Authorization failed. Response schema: Error

Examples

Example request:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'auth-token: token' -d '{
  "name": "test",
  "version": 5,
  "brokerTimezone": "EET",
  "brokerDSTSwitchTimezone": "EET"
}' 'https://mt-provisioning-api-v1.agiliumtrade.agiliumtrade.ai/users/current/provisioning-profiles'

Example response:

{
  "id": "f9ce1f12-e720-4b9a-9477-c2d4cb25f076"
}