Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

Overview

DescriptionCreating a model
Resource Path

/api/models

HTTP MethodPOST
Request/Response Formatapplication/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/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/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)

REST API response

HTTP status code

200

For descriptions of the HTTP status codes, see HTTP Status Codes.

  • No labels