<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Post API Calls Fails with Error "The endpoint does not support the provided HTTP method","errorLink":"E0000022"
Okta Classic Engine
Okta Identity Engine
Lifecycle Management
Overview

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"

Applies To
  • POST calls
  • Postman
  • Okta Identity Engine (OIE) 
  • Okta Classic Engine
Cause

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. 

Solution

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.
Loading
Post API Calls Fails with Error "The endpoint does not support the provided HTTP method","errorLink":"E0000022"