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

Setting Analysis Configurations via REST API

Overview

DescriptionSetting analysis configurations (e.g. algorithm type)
Resource Path

/api/analyses/{id}/configurations

HTTP MethodPOST
Request/Response Formatapplication/json
Parameter description
Parameter
Description
{id}ID of the analysis to which, you need to set configurations.

Sample cURL command

curl -X POST -d @'create-model-config.json' -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/analyses/1/configurations -k -v
  • The path to the JSON file that defines the analysis configurations needs to be defined as the <JSON_PAYLOAD> value. (e.g. create-model-config.json)

Example

For information on the property definitions that are used in a JSON file to define analysis configurations, see Sample Analysis Configurations Definition.

POST https://localhost:9443/api/analyses/{id}/configurations
[
    {
        "key": "algorithmName",
        "value": "LOGISTIC_REGRESSION"
    },
    {
        "key": "algorithmType",
        "value": "Classification"
    },
    {
        "key": "responseVariable",
        "value": "Class"
    },
    {
        "key": "trainDataFraction",
        "value": "0.7"
    }
]

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.