File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -115,17 +115,17 @@ export function createClient(api: DeferredJobsApiClient) {
115115 }
116116
117117 async function doDeleteMany ( ids : ContactTag [ 'id' ] [ ] ) {
118- const data = await api . delete < RawDeleteResponse > ( routing . contactTagsUrl , {
119- query : {
118+ const data = await api . post < RawDeleteResponse > ( routing . contactTagsDeleteManyUrl , {
119+ payload : {
120120 id : ids ,
121121 } ,
122122 } ) ;
123123 return { deleted : data . deleted_tags_ids } ;
124124 }
125125
126126 async function doDeleteUnused ( ) {
127- const data = await api . delete < RawDeleteResponse > ( routing . contactTagsUrl , {
128- query : {
127+ const data = await api . post < RawDeleteResponse > ( routing . contactTagsDeleteManyUrl , {
128+ payload : {
129129 filter : 'unused' ,
130130 } ,
131131 } ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export const routing = {
77 contactsUrl : '/v2/contacts' ,
88 contactTagGroupsUrl : '/v2/contact-tag-groups' ,
99 contactTagsUrl : '/v2/contact-tags' ,
10+ contactTagsDeleteManyUrl : '/v2/contact-tags/delete-many' ,
1011 coverageUrl : '/v2/coverage' ,
1112 coverageIntegrationsUrl : '/v2/coverage/integrations' ,
1213 jobsUrl : '/v2/jobs' ,
You can’t perform that action at this time.
0 commit comments