import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const response = await client.loyalty.ruleGroups.updateRuleGroup('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(response.isCollapsible);
{
"name": "<string>",
"subTitle": "<string>",
"isCollapsible": true
}
Update loyalty rule group by ID
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const response = await client.loyalty.ruleGroups.updateRuleGroup('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(response.isCollapsible);
{
"name": "<string>",
"subTitle": "<string>",
"isCollapsible": true
}
Body
Schema to update loyalty rule groups body
200
The response is of type object
.
Was this page helpful?