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
}

Response

Returns the updated master object.

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