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

Publishing a Model via REST API

Overview

DescriptionPublish a model
Resource Path

api/models/{modelId}/publish?mode={publishType}

HTTP MethodPOST
Request/Response Formatapplication/json
Parameter description
Parameter
Description
{modelId}The ID of the model to be published
{publishType}The format in which the model should be published.

Sample cURL command

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

Example

POST https://localhost:9443/api/models/{modelId}/publish?mode={publishType}

Sample output

 HTTP/1.1 200 OK

REST API response

HTTP status code

200, 400, 404 or 500.

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.