Create a New Model

A POST method that lets you create a new algorithmic model.

Request

POST https://api.demdex.com/v1/models/

Sample Request

All request values are required unless otherwise indicated.
{
  "name" : "New model",
  "description" : "Test Model",
  "dataSources" : [<data_provider_id_1>, <data_provider_id_2>],
  "sid" : 8,
  "algoTypeId" : <Algorithm ID. Currently, only ID 1 is available>,
  "lookBackPeriod" : <Specify 30, 60, or 90 days>
}
Sample Response
{
    "algoModelId": 1394,
    "pid": 1099,
    "name": "New model",
    "description": "Test Model",
    "algoTypeId": 1,
    "intervalSeconds": 86400,
    "lookBackPeriod": 30,
    "crUID": 3,
    "upUID": 3,
    "status": 1,
    "processingStatus": 0,
    "createTime": 1346092322000,
    "algoModelVersion": 0,
    "dataSources": [size(2)
                      3,
                      4
                    ],
    "sid": 8,
    "latestRunTS": 10000,
    "baselineTraitType": 3,
    "updateTime": 1346092322000
  }