STRUCTURE_DATA_CALCULATE_SCORE | STRUCTURE Endpoint | |
/rpc/structure/?method=STRUCTURE_DATA_CALCULATE_SCORE | ||
PARAMETERS | TYPE | NOTES | |
Days | Numeric | 1..365 [default 90]. When using Option = 2, how far back to go looking at other Data records | |
Id | Numeric | Data Id | |
Option | Numeric | 1=Based on single data [default],2=Based on all data for same contact. Need to pass a data id | |
ScoreByCategory | Text (1) | Y / N [default]. Can only be Y if Option = 1. After calculating, the data is returned as per below, or you can do a regular search via STRUCTURE_DATA_CATEGORY_SCORE_SEARCH |
RETURN - ScoreByCategory = N | ||
Points | ||
Score | ||
ScoreText | ||
SummaryId | If using Option 2 |
RETURN - ScoreByCategory = Y | ||
Data | Advanced search formatted return of Category, CategoryText, ResultScore, ResultScoreText, TotalPoints |