Discussions

Ask a Question
Back to All

To delete a contact from a group.

I am trying to delete a contact from a group and this is how I am going about it.

await client.DeleteAsync($"groups/{organizationId}/contacts?groupId={groupId}&contactIds={contact.ID}");

I am getting a 400 bad request error.

I have also tried the following call and it still fails

await httpClient.DeleteAsync($"groups/{organizationId}/contacts/{groupId}/{contactId}");

What am I missing and what is the change I need to make the request?