Get User Labels
GET /users/{user_id}/labels
Get a collection of labels and their weights used in recommendations for the given user. The higher weight values indicate higher user engagement. Results are order by highest-lowest weight values.
Request Parameters
Path Parameters
Name | Type | Description |
---|---|---|
user_id required | string |
Header Parameters
Name | Type | Description |
---|---|---|
program-id required | string |
Responses
200
Successful Response
UserLabelDict | application/json
Name | Type | Properties |
---|---|---|
labels required | object | description: An array of key-value pairs containing |
Response Example
{
"labels": "object"
}
404
User not found
ErrorMessage | application/json
Name | Type | Properties |
---|---|---|
detail required | string |
422
Validation Error
HTTPValidationError | application/json
Name | Type | Properties |
---|---|---|
detail | array | items: {'$ref': '#/components/schemas/ValidationError'} |
ValidationError | application/json
Name | Type | Properties |
---|---|---|
loc required | array | items: {'anyOf': [{'type': 'string'}, {'type': 'integer'}]} |
msg required | string | |
type required | string |