Hello! I’m trying to delete nested groups but I get an error. My code is:
deleteNestedGroups = async (groupId: string, idsToDelete: string[]) => {
const url = `${baseGroupsUrl}/${groupId}/nested`;
const res = await axios
.delete(url,
{
data: idsToDelete,
headers: {
Authorization: `Bearer ${this.accessToken}`
}
});
return res.status === 204;
}
The error is:
statusCode: 400
error: “Bad Request”
message: “Cannot read property ‘indexOf’ of undefined”
The string array is OK but I don’t know what is the issue.
Thanks!