Update Template
curl --request PATCH \
--url https://api.{your-broker}.slate-labs.com/prop/templates/{template_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"account_size": 123,
"account_currency": "<string>",
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"daily_dd_pct": 123,
"daily_dd_mode": "<string>",
"max_loss_pct": 123,
"max_loss_mode": "<string>",
"consistency_pct": 123,
"consistency_enforcement": "<string>",
"news_blackout_enabled": true,
"news_blackout_seconds_before": 123,
"news_blackout_seconds_after": 123,
"news_min_impact": "<string>",
"weekend_close_enabled": true,
"weekend_close_dow": 123,
"weekend_close_action": "<string>",
"max_lots_per_symbol": 123,
"min_trade_duration_seconds": 123,
"profit_split_pct": 123,
"payout_cadence": "<string>",
"payout_min_amount": 123,
"payout_min_trading_days": 123,
"fee_amount": 123,
"fee_currency": "<string>",
"reset_fee_amount": 123,
"phases": [
{}
],
"is_active": true,
"hedging_same_account": true,
"hedging_cross_account": true,
"ea_allowed": true,
"copy_trading_allowed": true,
"max_loss_lock_at": "<string>",
"max_loss_lock_buffer": 123,
"fee_refund_policy": "<string>",
"weekend_close_time": "<string>",
"news_event_actions": [
"<string>"
],
"scaling_plan": [
{}
]
}
'import requests
url = "https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}"
payload = {
"name": "<string>",
"description": "<string>",
"account_size": 123,
"account_currency": "<string>",
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"daily_dd_pct": 123,
"daily_dd_mode": "<string>",
"max_loss_pct": 123,
"max_loss_mode": "<string>",
"consistency_pct": 123,
"consistency_enforcement": "<string>",
"news_blackout_enabled": True,
"news_blackout_seconds_before": 123,
"news_blackout_seconds_after": 123,
"news_min_impact": "<string>",
"weekend_close_enabled": True,
"weekend_close_dow": 123,
"weekend_close_action": "<string>",
"max_lots_per_symbol": 123,
"min_trade_duration_seconds": 123,
"profit_split_pct": 123,
"payout_cadence": "<string>",
"payout_min_amount": 123,
"payout_min_trading_days": 123,
"fee_amount": 123,
"fee_currency": "<string>",
"reset_fee_amount": 123,
"phases": [{}],
"is_active": True,
"hedging_same_account": True,
"hedging_cross_account": True,
"ea_allowed": True,
"copy_trading_allowed": True,
"max_loss_lock_at": "<string>",
"max_loss_lock_buffer": 123,
"fee_refund_policy": "<string>",
"weekend_close_time": "<string>",
"news_event_actions": ["<string>"],
"scaling_plan": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
account_size: 123,
account_currency: '<string>',
group_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
daily_dd_pct: 123,
daily_dd_mode: '<string>',
max_loss_pct: 123,
max_loss_mode: '<string>',
consistency_pct: 123,
consistency_enforcement: '<string>',
news_blackout_enabled: true,
news_blackout_seconds_before: 123,
news_blackout_seconds_after: 123,
news_min_impact: '<string>',
weekend_close_enabled: true,
weekend_close_dow: 123,
weekend_close_action: '<string>',
max_lots_per_symbol: 123,
min_trade_duration_seconds: 123,
profit_split_pct: 123,
payout_cadence: '<string>',
payout_min_amount: 123,
payout_min_trading_days: 123,
fee_amount: 123,
fee_currency: '<string>',
reset_fee_amount: 123,
phases: [{}],
is_active: true,
hedging_same_account: true,
hedging_cross_account: true,
ea_allowed: true,
copy_trading_allowed: true,
max_loss_lock_at: '<string>',
max_loss_lock_buffer: 123,
fee_refund_policy: '<string>',
weekend_close_time: '<string>',
news_event_actions: ['<string>'],
scaling_plan: [{}]
})
};
fetch('https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'account_size' => 123,
'account_currency' => '<string>',
'group_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'daily_dd_pct' => 123,
'daily_dd_mode' => '<string>',
'max_loss_pct' => 123,
'max_loss_mode' => '<string>',
'consistency_pct' => 123,
'consistency_enforcement' => '<string>',
'news_blackout_enabled' => true,
'news_blackout_seconds_before' => 123,
'news_blackout_seconds_after' => 123,
'news_min_impact' => '<string>',
'weekend_close_enabled' => true,
'weekend_close_dow' => 123,
'weekend_close_action' => '<string>',
'max_lots_per_symbol' => 123,
'min_trade_duration_seconds' => 123,
'profit_split_pct' => 123,
'payout_cadence' => '<string>',
'payout_min_amount' => 123,
'payout_min_trading_days' => 123,
'fee_amount' => 123,
'fee_currency' => '<string>',
'reset_fee_amount' => 123,
'phases' => [
[
]
],
'is_active' => true,
'hedging_same_account' => true,
'hedging_cross_account' => true,
'ea_allowed' => true,
'copy_trading_allowed' => true,
'max_loss_lock_at' => '<string>',
'max_loss_lock_buffer' => 123,
'fee_refund_policy' => '<string>',
'weekend_close_time' => '<string>',
'news_event_actions' => [
'<string>'
],
'scaling_plan' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"account_size\": 123,\n \"account_currency\": \"<string>\",\n \"group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_dd_pct\": 123,\n \"daily_dd_mode\": \"<string>\",\n \"max_loss_pct\": 123,\n \"max_loss_mode\": \"<string>\",\n \"consistency_pct\": 123,\n \"consistency_enforcement\": \"<string>\",\n \"news_blackout_enabled\": true,\n \"news_blackout_seconds_before\": 123,\n \"news_blackout_seconds_after\": 123,\n \"news_min_impact\": \"<string>\",\n \"weekend_close_enabled\": true,\n \"weekend_close_dow\": 123,\n \"weekend_close_action\": \"<string>\",\n \"max_lots_per_symbol\": 123,\n \"min_trade_duration_seconds\": 123,\n \"profit_split_pct\": 123,\n \"payout_cadence\": \"<string>\",\n \"payout_min_amount\": 123,\n \"payout_min_trading_days\": 123,\n \"fee_amount\": 123,\n \"fee_currency\": \"<string>\",\n \"reset_fee_amount\": 123,\n \"phases\": [\n {}\n ],\n \"is_active\": true,\n \"hedging_same_account\": true,\n \"hedging_cross_account\": true,\n \"ea_allowed\": true,\n \"copy_trading_allowed\": true,\n \"max_loss_lock_at\": \"<string>\",\n \"max_loss_lock_buffer\": 123,\n \"fee_refund_policy\": \"<string>\",\n \"weekend_close_time\": \"<string>\",\n \"news_event_actions\": [\n \"<string>\"\n ],\n \"scaling_plan\": [\n {}\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"account_size\": 123,\n \"account_currency\": \"<string>\",\n \"group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_dd_pct\": 123,\n \"daily_dd_mode\": \"<string>\",\n \"max_loss_pct\": 123,\n \"max_loss_mode\": \"<string>\",\n \"consistency_pct\": 123,\n \"consistency_enforcement\": \"<string>\",\n \"news_blackout_enabled\": true,\n \"news_blackout_seconds_before\": 123,\n \"news_blackout_seconds_after\": 123,\n \"news_min_impact\": \"<string>\",\n \"weekend_close_enabled\": true,\n \"weekend_close_dow\": 123,\n \"weekend_close_action\": \"<string>\",\n \"max_lots_per_symbol\": 123,\n \"min_trade_duration_seconds\": 123,\n \"profit_split_pct\": 123,\n \"payout_cadence\": \"<string>\",\n \"payout_min_amount\": 123,\n \"payout_min_trading_days\": 123,\n \"fee_amount\": 123,\n \"fee_currency\": \"<string>\",\n \"reset_fee_amount\": 123,\n \"phases\": [\n {}\n ],\n \"is_active\": true,\n \"hedging_same_account\": true,\n \"hedging_cross_account\": true,\n \"ea_allowed\": true,\n \"copy_trading_allowed\": true,\n \"max_loss_lock_at\": \"<string>\",\n \"max_loss_lock_buffer\": 123,\n \"fee_refund_policy\": \"<string>\",\n \"weekend_close_time\": \"<string>\",\n \"news_event_actions\": [\n \"<string>\"\n ],\n \"scaling_plan\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"account_size\": 123,\n \"account_currency\": \"<string>\",\n \"group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_dd_pct\": 123,\n \"daily_dd_mode\": \"<string>\",\n \"max_loss_pct\": 123,\n \"max_loss_mode\": \"<string>\",\n \"consistency_pct\": 123,\n \"consistency_enforcement\": \"<string>\",\n \"news_blackout_enabled\": true,\n \"news_blackout_seconds_before\": 123,\n \"news_blackout_seconds_after\": 123,\n \"news_min_impact\": \"<string>\",\n \"weekend_close_enabled\": true,\n \"weekend_close_dow\": 123,\n \"weekend_close_action\": \"<string>\",\n \"max_lots_per_symbol\": 123,\n \"min_trade_duration_seconds\": 123,\n \"profit_split_pct\": 123,\n \"payout_cadence\": \"<string>\",\n \"payout_min_amount\": 123,\n \"payout_min_trading_days\": 123,\n \"fee_amount\": 123,\n \"fee_currency\": \"<string>\",\n \"reset_fee_amount\": 123,\n \"phases\": [\n {}\n ],\n \"is_active\": true,\n \"hedging_same_account\": true,\n \"hedging_cross_account\": true,\n \"ea_allowed\": true,\n \"copy_trading_allowed\": true,\n \"max_loss_lock_at\": \"<string>\",\n \"max_loss_lock_buffer\": 123,\n \"fee_refund_policy\": \"<string>\",\n \"weekend_close_time\": \"<string>\",\n \"news_event_actions\": [\n \"<string>\"\n ],\n \"scaling_plan\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Prop trading
Update Template
Update an editable (non-seed) template. Seeds are read-only — callers must clone first.
PATCH
/
prop
/
templates
/
{template_id}
Update Template
curl --request PATCH \
--url https://api.{your-broker}.slate-labs.com/prop/templates/{template_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"account_size": 123,
"account_currency": "<string>",
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"daily_dd_pct": 123,
"daily_dd_mode": "<string>",
"max_loss_pct": 123,
"max_loss_mode": "<string>",
"consistency_pct": 123,
"consistency_enforcement": "<string>",
"news_blackout_enabled": true,
"news_blackout_seconds_before": 123,
"news_blackout_seconds_after": 123,
"news_min_impact": "<string>",
"weekend_close_enabled": true,
"weekend_close_dow": 123,
"weekend_close_action": "<string>",
"max_lots_per_symbol": 123,
"min_trade_duration_seconds": 123,
"profit_split_pct": 123,
"payout_cadence": "<string>",
"payout_min_amount": 123,
"payout_min_trading_days": 123,
"fee_amount": 123,
"fee_currency": "<string>",
"reset_fee_amount": 123,
"phases": [
{}
],
"is_active": true,
"hedging_same_account": true,
"hedging_cross_account": true,
"ea_allowed": true,
"copy_trading_allowed": true,
"max_loss_lock_at": "<string>",
"max_loss_lock_buffer": 123,
"fee_refund_policy": "<string>",
"weekend_close_time": "<string>",
"news_event_actions": [
"<string>"
],
"scaling_plan": [
{}
]
}
'import requests
url = "https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}"
payload = {
"name": "<string>",
"description": "<string>",
"account_size": 123,
"account_currency": "<string>",
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"daily_dd_pct": 123,
"daily_dd_mode": "<string>",
"max_loss_pct": 123,
"max_loss_mode": "<string>",
"consistency_pct": 123,
"consistency_enforcement": "<string>",
"news_blackout_enabled": True,
"news_blackout_seconds_before": 123,
"news_blackout_seconds_after": 123,
"news_min_impact": "<string>",
"weekend_close_enabled": True,
"weekend_close_dow": 123,
"weekend_close_action": "<string>",
"max_lots_per_symbol": 123,
"min_trade_duration_seconds": 123,
"profit_split_pct": 123,
"payout_cadence": "<string>",
"payout_min_amount": 123,
"payout_min_trading_days": 123,
"fee_amount": 123,
"fee_currency": "<string>",
"reset_fee_amount": 123,
"phases": [{}],
"is_active": True,
"hedging_same_account": True,
"hedging_cross_account": True,
"ea_allowed": True,
"copy_trading_allowed": True,
"max_loss_lock_at": "<string>",
"max_loss_lock_buffer": 123,
"fee_refund_policy": "<string>",
"weekend_close_time": "<string>",
"news_event_actions": ["<string>"],
"scaling_plan": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
account_size: 123,
account_currency: '<string>',
group_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
daily_dd_pct: 123,
daily_dd_mode: '<string>',
max_loss_pct: 123,
max_loss_mode: '<string>',
consistency_pct: 123,
consistency_enforcement: '<string>',
news_blackout_enabled: true,
news_blackout_seconds_before: 123,
news_blackout_seconds_after: 123,
news_min_impact: '<string>',
weekend_close_enabled: true,
weekend_close_dow: 123,
weekend_close_action: '<string>',
max_lots_per_symbol: 123,
min_trade_duration_seconds: 123,
profit_split_pct: 123,
payout_cadence: '<string>',
payout_min_amount: 123,
payout_min_trading_days: 123,
fee_amount: 123,
fee_currency: '<string>',
reset_fee_amount: 123,
phases: [{}],
is_active: true,
hedging_same_account: true,
hedging_cross_account: true,
ea_allowed: true,
copy_trading_allowed: true,
max_loss_lock_at: '<string>',
max_loss_lock_buffer: 123,
fee_refund_policy: '<string>',
weekend_close_time: '<string>',
news_event_actions: ['<string>'],
scaling_plan: [{}]
})
};
fetch('https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'account_size' => 123,
'account_currency' => '<string>',
'group_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'daily_dd_pct' => 123,
'daily_dd_mode' => '<string>',
'max_loss_pct' => 123,
'max_loss_mode' => '<string>',
'consistency_pct' => 123,
'consistency_enforcement' => '<string>',
'news_blackout_enabled' => true,
'news_blackout_seconds_before' => 123,
'news_blackout_seconds_after' => 123,
'news_min_impact' => '<string>',
'weekend_close_enabled' => true,
'weekend_close_dow' => 123,
'weekend_close_action' => '<string>',
'max_lots_per_symbol' => 123,
'min_trade_duration_seconds' => 123,
'profit_split_pct' => 123,
'payout_cadence' => '<string>',
'payout_min_amount' => 123,
'payout_min_trading_days' => 123,
'fee_amount' => 123,
'fee_currency' => '<string>',
'reset_fee_amount' => 123,
'phases' => [
[
]
],
'is_active' => true,
'hedging_same_account' => true,
'hedging_cross_account' => true,
'ea_allowed' => true,
'copy_trading_allowed' => true,
'max_loss_lock_at' => '<string>',
'max_loss_lock_buffer' => 123,
'fee_refund_policy' => '<string>',
'weekend_close_time' => '<string>',
'news_event_actions' => [
'<string>'
],
'scaling_plan' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"account_size\": 123,\n \"account_currency\": \"<string>\",\n \"group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_dd_pct\": 123,\n \"daily_dd_mode\": \"<string>\",\n \"max_loss_pct\": 123,\n \"max_loss_mode\": \"<string>\",\n \"consistency_pct\": 123,\n \"consistency_enforcement\": \"<string>\",\n \"news_blackout_enabled\": true,\n \"news_blackout_seconds_before\": 123,\n \"news_blackout_seconds_after\": 123,\n \"news_min_impact\": \"<string>\",\n \"weekend_close_enabled\": true,\n \"weekend_close_dow\": 123,\n \"weekend_close_action\": \"<string>\",\n \"max_lots_per_symbol\": 123,\n \"min_trade_duration_seconds\": 123,\n \"profit_split_pct\": 123,\n \"payout_cadence\": \"<string>\",\n \"payout_min_amount\": 123,\n \"payout_min_trading_days\": 123,\n \"fee_amount\": 123,\n \"fee_currency\": \"<string>\",\n \"reset_fee_amount\": 123,\n \"phases\": [\n {}\n ],\n \"is_active\": true,\n \"hedging_same_account\": true,\n \"hedging_cross_account\": true,\n \"ea_allowed\": true,\n \"copy_trading_allowed\": true,\n \"max_loss_lock_at\": \"<string>\",\n \"max_loss_lock_buffer\": 123,\n \"fee_refund_policy\": \"<string>\",\n \"weekend_close_time\": \"<string>\",\n \"news_event_actions\": [\n \"<string>\"\n ],\n \"scaling_plan\": [\n {}\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"account_size\": 123,\n \"account_currency\": \"<string>\",\n \"group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_dd_pct\": 123,\n \"daily_dd_mode\": \"<string>\",\n \"max_loss_pct\": 123,\n \"max_loss_mode\": \"<string>\",\n \"consistency_pct\": 123,\n \"consistency_enforcement\": \"<string>\",\n \"news_blackout_enabled\": true,\n \"news_blackout_seconds_before\": 123,\n \"news_blackout_seconds_after\": 123,\n \"news_min_impact\": \"<string>\",\n \"weekend_close_enabled\": true,\n \"weekend_close_dow\": 123,\n \"weekend_close_action\": \"<string>\",\n \"max_lots_per_symbol\": 123,\n \"min_trade_duration_seconds\": 123,\n \"profit_split_pct\": 123,\n \"payout_cadence\": \"<string>\",\n \"payout_min_amount\": 123,\n \"payout_min_trading_days\": 123,\n \"fee_amount\": 123,\n \"fee_currency\": \"<string>\",\n \"reset_fee_amount\": 123,\n \"phases\": [\n {}\n ],\n \"is_active\": true,\n \"hedging_same_account\": true,\n \"hedging_cross_account\": true,\n \"ea_allowed\": true,\n \"copy_trading_allowed\": true,\n \"max_loss_lock_at\": \"<string>\",\n \"max_loss_lock_buffer\": 123,\n \"fee_refund_policy\": \"<string>\",\n \"weekend_close_time\": \"<string>\",\n \"news_event_actions\": [\n \"<string>\"\n ],\n \"scaling_plan\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/prop/templates/{template_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"account_size\": 123,\n \"account_currency\": \"<string>\",\n \"group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_dd_pct\": 123,\n \"daily_dd_mode\": \"<string>\",\n \"max_loss_pct\": 123,\n \"max_loss_mode\": \"<string>\",\n \"consistency_pct\": 123,\n \"consistency_enforcement\": \"<string>\",\n \"news_blackout_enabled\": true,\n \"news_blackout_seconds_before\": 123,\n \"news_blackout_seconds_after\": 123,\n \"news_min_impact\": \"<string>\",\n \"weekend_close_enabled\": true,\n \"weekend_close_dow\": 123,\n \"weekend_close_action\": \"<string>\",\n \"max_lots_per_symbol\": 123,\n \"min_trade_duration_seconds\": 123,\n \"profit_split_pct\": 123,\n \"payout_cadence\": \"<string>\",\n \"payout_min_amount\": 123,\n \"payout_min_trading_days\": 123,\n \"fee_amount\": 123,\n \"fee_currency\": \"<string>\",\n \"reset_fee_amount\": 123,\n \"phases\": [\n {}\n ],\n \"is_active\": true,\n \"hedging_same_account\": true,\n \"hedging_cross_account\": true,\n \"ea_allowed\": true,\n \"copy_trading_allowed\": true,\n \"max_loss_lock_at\": \"<string>\",\n \"max_loss_lock_buffer\": 123,\n \"fee_refund_policy\": \"<string>\",\n \"weekend_close_time\": \"<string>\",\n \"news_event_actions\": [\n \"<string>\"\n ],\n \"scaling_plan\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Every field on challenge_templates that is safe to mutate after initial creation. All fields optional — only provided ones are written. Matches the Pydantic shape of the clone response so the same edit form can be used for both flows.
Response
Successful Response
The response is of type Response Update Template Prop Templates Template Id Patch · object.
⌘I