Depending on applicable regulations or business limitations, specific API requests may not be available for your use.

Create a Model

This request creates a Model Folio.

Request URL

Syntax POST /restapi/models
Example URL

Request Data Fields

Field Required? Description
folioName Yes

The name of the Model Folio. Also called short name. Cannot be over 25 characters and cannot be blank (“”).

longName Yes

The long name of the Model Folio. Cannot be over 64 characters and cannot be blank (“”).

description No

Description of the model. Cannot be over 255 characters.


HTTP address containing more information regarding the Model Folio.

style Yes

Model style code. See Model Style Codes for detail. Cannot be blank (“”).

tradePctThreshold No

Percentage Trade Threshold–the minimum percentage by which a security’s current weight within a folio must deviate from the target weight. Defaults to 0.00. See Percentage Trade Threshold for more information.

publishedStatus No

Set to “P” or “U” to create a published or unpublished model. Defaults to unpublished. An unpublished model is only accessible directly from, and cannot be updated or modified through the API. Clients are also not able to subscribe to an unpublished model.

benchmarkItem No

The model’s benchmark. Can be a ticker symbol or an index symbol. Custom benchmarks are not supported by the REST API at this time.

targetWeights Yes

The securities’ target allocation percentages in the model. For each security, provide target weight and ticker symbol. Ticker symbols must be valid; target weights must sum to 100.00; each weight must be given as a percentage, to two decimal places. Do not provide currentWeight when creating a model.

Request Example

POST /restapi/models HTTP/1.1
Content-Type: application/json
    "folioName":"Full Name of Model Folio",
    "longName":"Long name",
    "description":"Model's description",
    "targetWeights":  [

Response Example

Returns the modelFolioOid of the new Model Folio upon successful creation.

HTTP/1.1 200 OK
X-Powered-By: Servlet/2.5
Content-Type: application/json
Date: Fri, 23 Oct 2015 20:15:08 GMT


Error Codes

Code Explanation folioName was not provided. longName was not provided. No targetWeights were provided. Style was provided. No Model Manager Watch Account was found.
ticker.not.found An invalid ticker symbol was provided.
ticker.not.window.tradeable A ticker symbol was provided which cannot be traded in windows. Target weights do not sum to 100.00. Do not give current weights for create/update a Model.
target.weight.positive.and.has.right.scale.rule A target weight was given which was either negative or was not to 2 decimal places.
length must be between 0 and 25 folioName was over 25 characters.
length must be between 0 and 64 longName was over 64 characters.
length must be between 0 and 255 Description was over 255 characters.
model.creation.failed.invalid.benchmark.item An invalid benchmarkItem was provided. Could not post initial Folio orders for the Model Folio. Could not place initial Sync Request for the Model Folio.
model.creation.failed.create.model Model Creation failed for some other reason.

Change Log


  1. Fix syntax error: replace shortName by longName


  1. Updated Request Data Field Descriptions.


  1. Updated Example URL


  1. Added Change Log

Getting Started