I am facing issues while creating an Okta app via Okta APIs.
I followed this documentation to create an app with the following:
headers = {
'Accept': 'application/json',
'Authorization': 'SSWS '+api_token,
'Content-Type': 'application/json'
}
input = {"name": tenant_name, "label": "Sample tenant App", "signOnMode": "OPENID_CONNECT",
}
response = requests.post(url, headers=headers, json=input)
url: https://dev-231233.oktapreview.com/api/v1/apps (example)
But I am getting following error:
{'errorCode': 'E0000007', 'errorSummary': 'Not found: Resource not found: test-tenant (App)', 'errorLink': 'E0000007', 'errorId': 'oaedyrTOkwESTSg7_A8nXrCxg', 'errorCauses': []}
I am wondering that I am trying to create an app and this API call is trying to find that app, is anything missing in the request params?
I also tried the python SDK https://github.com/okta/okta-sdk-python but I am getting errors wrt python 3.7 . Looks like it is not maintained recently.
I would appreciate any help with code samples to create an APP using Okta APIs?