Schema issues using Create Source API

I’m using this API endpoint to create some delimited file sources.

POST https://{{org}}.api.identitynow.com/beta/sources

I’ve tried a few different options in the body of the call, however, no matter what I include/exclude, my new sources don’t contain the “Upload” option in the account schema.

Broken Source:

Here is what should appear there:

In regards to the body of the POST call. My first attempts used a copy of an existing Delimited Source using: GET https://{{org}}.api.identitynow.com/beta/sources/{{sourceSYS}}

The source I retrieved was brand new and created in the UI. All functionality was there, I just hadn’t made any schema changes or uploaded accounts.

I then progressed into using a body that was as minimal as I could get, which looked like this:

{

    "description": "Source to load accounts for Key Financial Report Database UAC",

    "owner": {

        "type": "IDENTITY",

        "id": "2c9180867d....f56263d",

        "name": "Nicholas Bowerman"

    },

    "type": "Delimited File",

    "connector": "delimited-file-angularsc",

    "connectorClass": "sailpoint.connector.DelimitedFileConnector",

    "connectorAttributes": {

        "templateApplication": "Delimited File",

        "cloudDisplayName": "Key Financial Report Database UAC Source"

    },

    "name": "Key Financial Report Database UAC Source"

}

I had the same outcome with the upload schema button missing.

While I have found work arounds for this, something seems wrong. Can anyone tell me if there is something I can EASILY do to resolve this when using this API?

Thanks!

You need to set the provisionAsCsv query parameter to true in order to create a delimited file source type. It’s easy to miss, but is in the query parameter section of the create source API spec. Use the following URL with your body to enable the “Upload Schema” feature.

POST https://{tenant}.api.identitynow.com/v3/sources?provisionAsCsv=true

Also, I noticed you provided a link to the beta version of sources. There is a v3 equivalent of sources.

1 Like