Update Account Template
API URL: POST https://userapi-demo.s2f.projectx.com/AccountTemplate/update
API Reference: /AccountTemplate/update
info
Documentation on this page is applicable to platforms that have Account Templates enabled. If you are unsure whether you have Account Templates enabled, please contact your account manager.
Description
Update Account Template.
Parameters
Name | Type | Description | Required | Nullable |
---|---|---|---|---|
title | string | The Account Template title. | true | false |
name | string | The Account Template name. | true | false |
description | string | The Account Template description. | true | false |
notes | string | Notes on the Account Template. | false | true |
startingBalance | decimal | The starting balance for all accounts created from this Account Template. | false | false |
margin | decimal | The margin for all accounts created from this Account Template. | false | false |
titleColor | string | The title color for the Account Template. | false | true |
tag | int | The Account Template tag. Valid Values:
| true | false |
id | int | The Account Template id. | true | false |
Example Usage
Example Request
- Request
- cURL
{
"title": "string",
"name": "string",
"description": "string",
"notes": "string",
"startingBalance": 0,
"margin": 0,
"titleColor": "string",
"tag": 0,
"id": 0
}
curl -X 'POST' \
'https://userapi-demo.s2f.projectx.com/AccountTemplate/update' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"title": "string",
"name": "string",
"description": "string",
"notes": "string",
"startingBalance": 0,
"margin": 0,
"titleColor": "string",
"tag": 0,
"id": 0
}'
Example Response
- Success
- Error
{
"success": true,
"errorMessage": "string"
}
Error: response status is 401