Accelerate the Value of Data

Set Ratings Configuration for Source Systems

This operation can set Ratings Configuration for Source Systems to already existing configuration.

The " minVoteWeight ", " maxVoteWeight " should be a number in a range [0,5]. " monthsToMinWeight " should be a non-negative number.

Request 

PUT {TenantURL}/ratingConfiguration/sources
Table 1. Set Ratings for Source Systems Parameters

Name

Required

Description

Headers

Yes

"Content-Type: application/json"

Body

Yes

JSON object with Ratings Configuration for Source Systems

Request

PUT {TenantURL}/ratingConfiguration/sources
 
Body:
{
    "configuration/sources/LNKD": [
        {
            "uris": ["configuration/relationTypes/HasAddress"],
            "minVoteWeight": 2,
            "maxVoteWeight": 5,
            "monthsToMinWeight": 4
        },
        {
            "minVoteWeight": 1,
            "maxVoteWeight": 2,
            "monthsToMinWeight": 1
        }
    ],
    "configuration/sources/FB": [
        {
            "uris": ["configuration/relationTypes/HasAddress", "configuration/relationTypes/Employment"],
            "minVoteWeight": 2,
            "maxVoteWeight": 5,
            "monthsToMinWeight": 4
        },
        {
            "minVoteWeight": 1,
            "maxVoteWeight": 2,
            "monthsToMinWeight": 1
        }
    ]
}

Response

If the configuration created successfully then response will contain JSON with whole ratings configuration.

Response

Is the same as for GET {TenantURL}/ratingConfiguration.

GET {TenantURL}/ratingConfiguration
 
Body:
{
   "timestamp": 12345,
   "sources":{
      "configuration/sources/FB":[
         {
            "uris":[
               "configuration/relationTypes/HasAddress",
               "configuration/relationTypes/Employment"
            ],
            "minVoteWeight":2.0,
            "maxVoteWeight":5.0,
            "monthsToMinWeight":4.0
         },
         {
            "minVoteWeight":1.0,
            "maxVoteWeight":2.0,
            "monthsToMinWeight":1.0
         }
      ],
      "configuration/sources/LNKD":[
         {
            "uris":[
               "configuration/relationTypes/HasAddress"
            ],
            "minVoteWeight":2.0,
            "maxVoteWeight":5.0,
            "monthsToMinWeight":4.0
         },
         {
            "minVoteWeight":1.0,
            "maxVoteWeight":2.0,
            "monthsToMinWeight":1.0
         }
      ]
   },
   "userRoles":{
      "ROLE_ADMIN":[
         {
            "uris":[
               "configuration/relationTypes/HasAddress"
            ],
            "minVoteWeight":1.0,
            "maxVoteWeight":10.0,
            "monthsToMinWeight":2.6
         }
      ]
   }
}