com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Retrieving User Recommendations via REST API
Overview
Description | Retrieving the recommended users with a model that uses a collaborative filtering algorithm. |
Resource Path | api/models/{modelId}/user-recommendations?productId={product-id}&noOfUsers={no-of-users} |
HTTP Method | GET |
Request/Response Format | Application/JSON |
Parameter description
Parameter | Description |
---|---|
{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. |