IDNOW API to create entitlements/upload entitlements

We are trying to create a disconneceted delimited file source from API. Once we create a source using the API, we want to upload/create the entitlements on the source created using an API.

I don’t see any API’s in the documentation. Can someon guide us on how we can achieve this ?

Thanks

You can use this API to upload the entitlements in a csv file for a delimited source.
https://{tenant}/beta/entitlements/sources/{source_id}/entitlements/import

@smukhija Can you please share the CURL postman for this? I don’t see any example in docs.

It would be awesome if you could paste the curl here.

Thanks

curl -v -x <proxy address> --location --request POST "<tenant>/cc/api/source/loadEntitlements/<sourceID>" --header "Authorization: Bearer <header>" --form "<file path>" --ssl-no-revoke

You can use this endpoint to run aggregation that will load/create/update entitlements into IDN.

1 Like

Hi @PratithShetty

curl --location --request POST ‘https://{org}.api.identitynow.com/cc/api/source/loadEntitlements/{sourceId}’
–header ‘Authorization: Bearer {access_token}’
–form ‘file=@“/path/to/entitlements.csv”’

Hope this helps

1 Like

Thank you so much @rajeshs it works.

I would still want to know what @smukhija has tried with the BETA API. Is this a new API which will be available as I have seen that API’s with CC/ will be decommissed end of 2023.

@rajeshs Also is there a way to make the entitlements requestable in bulk using API?

@smukhija - Here is the API that you gave me.

curl --location ‘’
–header ‘Authorization: Bearer ’
–header ‘Cookie: ’
–form ‘file=@“/C:/Users/pnshetty/Downloads/simeioiodissconnapptest4-entitlement-feed.csv”’

Gives me this result :

{
“total”: 7,
“updated”: 0,
“saved”: 0
}

But i don’t see it reflecting on the UI.

The one I provided is equivalent to uploading a csv in entitlements for disconnected source. It returns if any existing entitlement is updated or new one is saved in the resulted count

Here’s the API to bulk update to make entitlements request able

The number of entitlements to update is limited to 50 items maximum.

2 Likes

@smukhija - if you add new entitlements in the file, does it create a new entitlement on the UI for you?
Can you please share the curl postman code if it does. Would be easy to have a look.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.