Vorheriges Thema: Get the Scale for a Weight Set

Nächstes Thema: Delete a Weight Set

Update the Scale for a Weight Set

This web service defines the scale for a sibling list for the specified weight set. A sibling list is a list of siblings that shares the same parent characteristic. All siblings must have their scale defined at the same time. The scale of the sibling list must equal 1.

HTTP Type

PUT

Restriction

Limited. Open to all public users with the following limitation:

This web service only updates the scale for a weight created by the user making the request.

URI

{type}/SMI/{version}/weightset/{weightSetUUID}/update

Parameter

Description

{weightSetUUID}

UUID of the weight set for which you want to set the scale.

&key

The API Key that is provided when your application has been registered.

&secret

The Shared Secret that is provided when your application has been registered.

&Scale

Defines the scalar values of the SMI characteristic sibling list. The values of the sibling list must equal 1. For example: Quality,0.25, Agility,0.1,Risk,0.1,Capability,0.1,Cost,0.25,Security,0.1,Overall_measure,0.1.

Example:

The following URI updates a weight set with new scalar values. In this example, the following sibling list is set: Quality,0.25,Agility,0.1,Risk,0.1,Capability,0.1,Cost,0.25,Security,0.1,Overall_measure,0.1.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/weightset/1c3c37f4-e6b8-11df-9332-b37f9d26f570/update?Scale=Quality,0.25,Agility,0.1,Risk,0.1,Capability,0.1,Cost,0.25,Security,0.1,Overall_measure,0.1&key=4f400a9b486c764d3a6ec5f86fe0a2aa&secret=e320f8f11cb88b5ab346d9ab34033d95 

Sample output of successful execution:

{
"result":
	{
	"returnCode": "0",
	"errorMessage": "Operation Successful.",
	"resultCount": 0,
	}
}