This article clarifies why an error occurs when running the Activate Rule call from the Groups (Okta API) collection in Postman. The issue is observed when attempting the following call:
POST /api/v1/policies/${policyId}/rules/${ruleId}/lifecycle/activate
The following error message is displayed in Postman:
{
"errorCode": "E0000005",
"errorSummary": "Invalid session",
"errorLink": "E0000005",
"errorId": "<ERROR_ID>",
"errorCauses": []
}
For example:
- API
- Postman
The Authorization configuration is missing in Postman.
Add Open Authorization (OAuth) 2.0 to Postman to resolve the session error.
- Follow the instructions in the article How to Integrate Postman with Okta to add the OAuth 2.0 Authorization to Postman.
- The authorization section should look like this.
