
User16552989370305796596 (Customer) asked a question.
Hello,
I am using the API to create user and since a few day, the API in not behaving as expected. My code hasn't change and the thrown exception mention a 400 http return code. For troubleshooting, I retried with the postman collection and I got the following error:
{
"errorCode": "E0000022",
"errorSummary": "The endpoint does not support the provided HTTP method",
"errorLink": "E0000022",
"errorId": "hidden",
"errorCauses": []
}
Any expected service disruption or change in the API?
Thanks and regards,
Fabien

Hi Fabien,
400 = Bad request which likely means one of your changes broke something in the structure of the request. This could be as simple as missing a single "," character. Typically (at least with Okta) the 400 errors provide additional context as to what is broken.
I would first make sure your auth is functioning fine by just doing a simple GET method to /api/v1/users/me
This won't have any sort of body portion to send (will have a body response) but will let you know if you have at least "read" access. Keep in mind to do POSTs/PUTs etc you need "manage" access. If you are leveraging a Super Admin created API token this will definitely have the required scopes.
Header: Authorization : SSWS apiTokenValue