Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter
Description
{id}ID of the model to which, you need to add storage information.

Example

Code Block
languagetext
POST /api/models/{id}/storages
{
    "name": "wso2-ml-model",
    "analysisId": 1,
    "versionSetId": 1
}

Sample cURL command

Code Block
languagepowershell
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/models/1/storages -k -v -d @'create-model-storage'

Example

Code Block
languagetext
POST https://localhost:9443/api/models/{id}/storages
{
    "name": "wso2-ml-model",
    "analysisId": 1,
    "versionSetId": 1
}

REST API response

HTTP status code

200

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