com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.
Creating a Model via REST API v10
Overview
Description | Creating a model |
Resource Path |
|
HTTP Method | POST |
Request/Response Format | application/json |
Example
For information on the property definitions  that are used in a JSON file to define a model, see Sample Model Definition.
POST /api/v10/models { "name": "wso2-ml-model", "analysisId": 1, "versionSetId": 1 }
Sample cURL command
curl -X POST -d @'create-model.json' -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/v10/models -k
- The path to the JSON file that defines the model needs to be defined as theÂ
<JSON_PAYLOAD>
 value. (e.g.Âcreate-model.json
)
Sample outputÂ
{ "modelSummary":null, "analysisId":2, "versionSetId":2, "storageType":"file", "storageDirectory":"ML_HOME/models", "createdTime":null, "tenantId":-1234, "name":"wso2-ml-logistic-regression-analysis.Model.2015-09-02_17-07-27", "id":0, "error":null, "userName":"admin", "status":"Not Started" }
REST API response
HTTP status code | 200 For descriptions of the HTTP status codes, see HTTP Status Codes. |
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.