This method allows you to update a globalmacro as defined by the globalmacro data array.
Parameter | Type | Optional | Description | Details |
---|---|---|---|---|
globalmacro data | array or object | No | Array of Globalmacro objects or a single object | macro name must be specified |
Parameter | Description |
---|---|
result | Operation successful. Result will contain array of updated Globalmacro IDs. globalmacroid are assigned to each Globalmacro object |
error | In case of any errors |
{
"jsonrpc":"2.0",
"method":"usermacro.updateGlobal",
"params":[
{
"macro":"{$MACRO1}",
"value":"NEW VALUE"
},
{
"macro":"{$MACRO2}",
"value":"NEW VALUE"
}
],
"auth":"038e1d7b1735c6a5436ee9eae095879e",
"id":3
}
Globalmacro updated successfully:
Globalmacro doesn't exist: