I'm trying to Delete a customer:
https://docs.particle.io/reference/device-cloud/api/#delete-a-customer
But the requests fails with a 400 response:
{
"error": "invalid_scope",
"error_description": "Customers are not allowed to access product and organization endpoints"
}
The access token I was using was my Particle Account's access token I generated using the Particle CLI:
I suspected I needed to use a Customer Scoped Access Token, and generated one:
https://docs.particle.io/reference/device-cloud/api/#generate-a-customer-scoped-access-token
But when I used the resulting access_token as the Bearer token for my Delete Customer request, I hit the same 400 error "Customers are not allowed to access product and organization endpoints"
What's this error response telling me to change about my request?