When making a Post API call via a third-party application such as Postman, the below error message might be encountered, indicating that the call failed:
The endpoint does not support the provided HTTP method","errorLink":"E0000022"
- POST calls
- Postman
- Okta Identity Engine (OIE)
- Okta Classic Engine
Normally, this error is generated due to either an expired API token or insufficient permissions, as indicated within this document: E0000022: HTTP request method not supported exception.
However, the issue may also arise since the URL variable used within the API call is missing the "https://" part, which is required for Post calls. Although GET calls may work without the full URL, Post calls require it in full.
-
For example,
OktaDomain.okta.comwill not work on aPostcall, but https://OktaDomain.okta.com will.
To address this, ensure that the default call URL is set to include the "https://".
- If using Postman, go to the Envrionment quick look button on the right side of the Postman app (represented by an Eye button).
- Under the Variable URL, see the Initial Variable and the Current Variable.
- Ensure that the Current Variable is set to "
https://InsertOktaDomain.okta.com". - After saving it, the same calls should not display the full URL link when hovering the mouse over the "URL" from within the API calls, and the Post call should go through and give a 200 Ok response code.
