com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Publishing a Model via REST API v10

Overview

DescriptionPublish a model
Resource Path

/api/v10/models/{id}/publish

HTTP Method POST
Request/Response Formatapplication/json
Parameter description
Parameter
Description
{id}The ID of the model that you need to publish to WSO2 registry.

Sample cURL command

curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/v10/models/1/publish -k -v

Example

POST https://localhost:9443/api/v10/models/{id}/publish

Sample output

{"response":"/_system/governance/ml/analysis-1.Model.2015-09-02_17-01-37"}

REST API response

HTTP status code

200

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