403 Error when Importing Identity Profile

We encountered similar error (403) while doing identity profile import. Some reason it says method not allowed.

We tried following:
Try 1:
POST: https://{tenant}.api.identitynow.com/v3/identity-profiles/import
In body: Posted full JSON of lastly exported ID profile with few update on source

Result: Error 403 - Method not allowed

Try 2:
POST: https://{tenant}.api.identitynow.com/v3/identity-profiles/import
In body: form format [ Key = “file”, value = “selected txt file where our ID profile json with update was located”

Result: same Error 403 - Method not allowed

Welcome to the developer community @hrathod007.

The identity-profiles import worked for me. Here is an example cURL call that works on my environment. Please see if you can spot any differences with what you are attempting.

curl --location --request POST 'https://{tenant}.api.identitynow.com/v3/identity-profiles/import' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "version": 1,
        "self": {
            "name": "Collaborators",
            "id": "12a199bc87b64ffe992ef4ecfd0767ab",
            "type": "IDENTITY_PROFILE"
        },
        "object": {
            "description": "Users who don'\''t need admin access",
            "owner": null,
            "priority": 100,
            "authoritativeSource": {
                "type": "SOURCE",
                "id": "2c91808982f63973018313f93e55097c",
                "name": "Collaborators [source]"
            },
            "identityRefreshRequired": false,
            "identityCount": 1,
            "identityAttributeConfig": {
                "enabled": true,
                "attributeTransforms": [
                    {
                        "identityAttributeName": "uid",
                        "transformDefinition": {
                            "type": "accountAttribute",
                            "attributes": {
                                "attributeName": "name",
                                "sourceName": "Collaborators",
                                "sourceId": "2c91808982f63973018313f93e55097c"
                            }
                        }
                    }
                ]
            },
            "identityExceptionReportReference": null,
            "hasTimeBasedAttr": false,
            "id": "12a199b967b64ffe992ef4ecfd076728",
            "name": "Collaborators",
            "created": "2022-09-06T18:10:11.617Z",
            "modified": "2022-09-16T14:23:18.338Z"
        }
    }
]'