09-04-2019 04:10 PM
Hello.
We are trying to provision users using the REST API. We have been succesful in creating 20 users, but beyond that the API return 400 bad requeste errors. I have seen we haven't reached the 1000 daily / 5000 weekly calls. Other calls like GET, PUT, DELETE still work. Only POST calls are failing.
09-04-2019 07:12 PM
Found the solution in another post:
09-04-2019 07:02 PM
Hi.
I look at the statistics page, and I did less than 400 hits today (we just started these week doing this). I was using Powershell for my scripts. Just to make sure, I tried to recreate my calls with curl, and I got this nice clear message (I have stripped secret values):
curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" --header "X-AH-API-CLIENT-ID: ####" --header "X-AH-API-CLIENT-SECRET: ####" --header "X-AH-API-CLIENT-REDIRECT-URI: ####" --header "Authorization: Bearer ####" -d '{"policy":"PERSONAL", "groupId":"####", "deliverMethod":"NO_DELIVERY", "firstName":"####@u-tad.com"}' "https://cloud-ie.aerohive.com/xapi/v1/identity/credentials?ownerId=####"
{"data":null,"error":{"status":400,"code":"registration.service.credential.exceed.max","message":"The credentials exceed the maximum number (20) allowed.","rawMessage":"JtErTcqiQV: null","errorParams":{"number":20}}}
What is this maximum number of credentials number???
09-04-2019 06:42 PM
What other POST operations are going on? Could you estimate how many are going through per day?
Also, what are you using to test this (Postman or something else)? Would you be able to send us screen shots of your API configuration?
09-04-2019 06:33 PM
I have looked at the other POST operations, but I cant use any of those. I tried using the the identity/credentials/deliver endpoint also, but it fails the same way.