Skip to main content
POST
/
customer-groups
/
customers
/
delete
Remove customers from group
curl --request POST \
  --url https://api.nuwebgroup.com/v1/customer-groups/customers/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerGroupId": 1,
  "customers": [
    {
      "email": "[email protected]"
    }
  ]
}
'
{
  "data": {
    "type": "customerGroups",
    "id": 1,
    "attributes": {
      "name": "My Group",
      "companyId": 1,
      "createdAt": "2021-11-22T11:59:00.000000Z",
      "updatedAt": "2021-11-22T11:59:00.000000Z",
      "deletedAt": null
    }
  }
}

Authorizations

Authorization
string
header
required

The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.

Body

application/json

Request body for removing customers from a group

customerGroupId
boolean

The ID of the customer group to remove customers from

customers
any[]

An array of customer emails that should be removed from the group

Response

Successfully removed the customers from the group

data
object