Skip to content

UpdateCopyTradeMaster

Endpoint

PUT /copytrade/master/{id}

Authorization

Requires SESSION_CUSTOMER.

Description

Updates a customer-owned master profile. If login is changed, the new login must belong to the customer and must be a REAL account.

This method updates the master profile only. Reward policy changes are handled by manager reward policy methods.

Request

{
  "strategy_name": "Conservative FX v2",
  "enabled": 1,
  "visibility": "public",
  "allowed_follower_modes": 0,
  "show_trade_history": 1,
  "show_followers": 1
}

Request Fields

All fields are optional.

Name Type Description
login int New customer-owned REAL account login
enabled int 1 enabled, 0 disabled
strategy_name string Strategy display name
description string Strategy description
visibility string private or public marker
allowed_follower_modes int 0 real only, 1 demo only, 2 real and demo
show_trade_history int 1 allows public viewing of this master's trade history, 0 keeps it private
show_followers int 1 allows public viewing of masked followers and their copied-trading statistics under this master, 0 keeps them private

Response

Returns the updated master object. The master object includes show_trade_history and show_followers.

Errors

HTTP Error Description
400 INVALID_DATA Request validation failed
400 ACCOUNT_NOT_FOUND New account or group was not found
400 MASTER_ACCOUNT_MUST_BE_REAL New login belongs to a DEMO group
403 PERMISSION_DENIED Master is not owned by the customer
403 INVALID_ACCOUNT New login does not belong to the customer
404 RET_ERR_NOTFOUND Master was not found