Edit
Edit
				
					{
    "method": "hub.cloud.subscription.update",
    "id": "_ID_",
    "params": {
        "abstractUUID": "1234-abcd-...",
        "mappings": [
            {
                "capability": "<capability-name-to-add>",
                "variable": "<variable-name-to-add>",
                "valueType": "int",
                "dictionaryType": false,
                "value": 1
            },
            {
                "capability": "<capability-name-to-add>",
                "variable": "<variable-name-to-add>",
                "valueType": "int",
                "dictionaryType": false,
                "value": 20,
                "minValue": 10,
                "maxValue": 30
            },
            {
                "capability": "<capability-name-to-add>",
                "variable": "<variable-name-to-add>",
                "valueType": "token",
                "dictionaryType": false,
                "enum":["one", "two"]
            },
            {
                "capability": "<capability-name-to-remove>",
                "variable": "<variable-name-to-remove>",
            }
        ]
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "method": "hub.cloud.subscription.update",
    "result": {},
}				
			
Edit
Edit
				
					{
    "method": "hub.cloud.subscription.update",
    "id": "_ID_",
    "params": {
        "abstractUUID": "13c50adb-e278-4f70-93c9-a468c0ca7bcf",
        "mappings": [
            {
                "capability": "custom_subscription_eyJ1dWlkIjoiMTNjNTBhZGItZTI3OC00ZjcwLTkzYzktYTQ2OGMwY2E3YmNmIiwibmFtZSI6ImNyZWF0ZUlzc3VlQ2FsbGJhY2siLCJwYXJhbXMiOnsicHJvamVjdF9pZCI6InNkMjEzMjEzIn0sImV2ZW50X25hbWUiOiJpc3N1ZSJ9",
                "variable": "value",
                "valueType": "string",
                "dictionaryType": false,
                "value": ""
            }
        ]
    }
}				
			
Edit
				
					{
    "error": {
        "code":-32602,
        "data":"invalid.subscription.capability.name",
        "message":"Capability value doesn't corresponds to the set standards",
        "reason":"value at capability exceeded the max allowed length"
    },
    "id":"_ID_",
    "method":"hub.cloud.subscription.update",
    "result":{},
    "sender": { 
        "conn_id":"1",
        "type":"ui"
    }

}				
			
Edit
| Code | Message | Data | Reason | |——–|————————–|—————————-|——————————————————————————————————————————-| | -32602 | Capability value doesn’t corresponds to the set standards | invalid.subscription.capability.name | value at capability exceeded the max allowed length