chore: Update deleteCustomAttribute
method in SDK (#3334)
This commit is contained in:
parent
c2db8a1fd7
commit
a2764e5c1d
12 changed files with 138 additions and 30 deletions
|
@ -12,9 +12,14 @@ export default {
|
|||
...userObject,
|
||||
});
|
||||
},
|
||||
setCustomAttibutes(customAttributes = {}) {
|
||||
setCustomAttributes(customAttributes = {}) {
|
||||
return API.patch(buildUrl('widget/contact'), {
|
||||
custom_attributes: customAttributes,
|
||||
});
|
||||
},
|
||||
deleteCustomAttribute(customAttribute) {
|
||||
return API.post(buildUrl('widget/contact/destroy_custom_attributes'), {
|
||||
custom_attributes: [customAttribute],
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue