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

Updating Features with Customized Values For an Analysis

Overview

DescriptionAdd customized features to an analysis.
Resource Path

/api/analyses/{analysisId}/features

HTTP MethodPOST
Request/Response Formatapplication/json
Parameter description
Parameter
Description
{analysisId}ID of the analysis to which you need to add customized features.

Sample cURL command

For information on the property definitions that are used in a JSON file to define customized features, see Sample Customized Features Definition.

curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/analyses/1/features -k -v -d @'customized-features.json'
customized-features.json
[{
"type" : "NUMERICAL",
"name" : "BMI",
"include" : true,
"imputeOption" : "DISCARD"
},
{
"type" : "NUMERICAL",
"name" : "Age",
"include" : true,
"imputeOption" : "DISCARD"
},
{
"type" : "NUMERICAL",
"name" : "PG2",
"include" : true,
"imputeOption" : "DISCARD"
}]

Example

POST https://localhost:9443/api/analyses/{analysisId}/features

REST API response

HTTP status code

200, 404 or 500

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