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

Retrieving User Recommendations via REST API

Overview

DescriptionRetrieving the recommended users with a model that uses a collaborative filtering algorithm.
Resource Pathapi/models/{modelId}/user-recommendations?productId={product-id}&noOfUsers={no-of-users}
HTTP MethodGET
Request/Response FormatApplication/JSON
Parameter description
ParameterDescription
{modelId}The ID of the model used to make the user recommendation.
{product-id} The ID of the product for which user recommendations are made.
{no-of-users}The number of user recommendations that should be retrieved.

Sample cURL command

curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -k -v "https://localhost:9443/api/models/${modelId}/user-recommendations?product-id=123&no-of-users=2"

Example

GET https://localhost:9443/api/models/{modelId}/user-recommendations?productId={product-id}&noOfUsers{no-of-users}

Sample output

[1,2]

 

REST API response

HTTP status code

200, 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.