Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Uploading files to File Directory

HarishG
Regular Contributor
Regular Contributor

Hi,

We are using Datafiles API to push the SAV file and CSV files to saviynt. But when i try to call the api using postman, i get the below message. In preview it asks for login credentials and it doesn’t work even if we try to give the credentials.

HarishG_0-1704893834993.png

HarishG_1-1704893866793.png

 

Any idea how to avoid this?

 

Best regards

Harish

6 REPLIES 6

pmahalle
All-Star
All-Star

Hi @HarishG ,

Did you generated bearer auth token and used it in Authorization header for you above API? Refer below API document to get authentication API details.

https://documenter.getpostman.com/view/1797923/RWaLwo21#2117ad42-4129-47bb-8268-04b463da32db


Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept As Solution to help other who may have a same problem. Give Kudos 🙂

HarishG
Regular Contributor
Regular Contributor

Hi @pmahalle ,

Yes, we are using the Bearer token. and also i generate a new token everytime and use it before calling the API

HarishG_0-1704899023036.png

Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

HarishG
Regular Contributor
Regular Contributor

Hi @rushikeshvartak,

cURL: 
curl --location 'https://XXXXX-dev.saviyntcloud.com/ECM/uploadSchemaFile' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJwcmluY2lwYWwiOiJINHNJQUFBQUFBQUFBSlZUUFc4VFFSUjhkemdLSWxLSWtVQktFWVJFNk9Bc1Fla21pZU1nMEdGSE1TNElFdEY2YjNQZVpHXC8zMklcL0VicEFyS0ZJRUFaR1ErQXY1SFRUUThBTVFGTFNwYVhsN2NYS0dKbUtyMDl1NW1Ya3pkOGNuTUdVMFBFZzE0Y0pFdVhBcGw1SEpOWmVwWWRScGJvZVJNMHduekJhSWh3V3dpeE00UFVFSVFRd2hUeXhjaTNmSUhxa0pJdE5hdTdmRHFLMFBOTnhYT2gwemJtdVNzWDJsZDZOemJxbzArMHVncEE2V1FwamVoQ3FoVkRscFcwbzJCem5YTE5tRXVYSVdLN3JyUjljcDNqQnBPUkZtRWpyTkpPa0psc1F3UTV6dEsxVGx6Rmk0ZW1yV1dTNXFIV2JyTVZ6T2lUSG83cDlOT3RaYjlcL2ZlcHNRTlhzSXJxQXp5QUE5bWQ4ZERJODhUTlpRUXVEVlgwaXgyWmFZU3ZzMjlPUEtQRnQ1OU9cL3cwNm9ZQW1NbmRpOThwNVwvTXJNUHJ5NHZmTkl1aUFXcmd4WWIyRTFRYzV1cW1XekU4MTg4cmZQNjZcL1B6cDU4XC93U0tudkUydlwvM3NiZzhUbTdZVUZsT05MRnFvaU9rM2FcL2djNGprS3hlVG43VXdqRG84eXdYREwwcGFscHhMbE1TNGJrVXJjWmEzaFNzYjdiaTV0Yno2NUZITCtPR3NoV294YXJaV3U1M214bGFqdmY3TUEyXC8xaWVhbUg2VkVKaXduUXZBbFR1OVJ6TmdKaXpZeXREcGJKT1Vyam1LRkJSXC84ZXZ2MThQWVBsSDBNVTN0RU9JWkZ6WldnbHN0NlRMOCtQbHFZK2ZEem9GaDdcL0F0OFwvZ001MGZjN1JnTUFBQT09Iiwic3ViIjoiaGFyaXNoLmdhbmRlcGFsbGlAaWMtY29uc3VsdC5jb20iLCJleHAiOjE3MDE0NjY4NTYsImlhdCI6MTcwMTQzODA1Niwicm9sZXMiOlsiUk9MRV9BRE1JTiIsIlJPTEVfRU5EVVNFUl9DT1BZIl19.un-5U1c-ZSaTpfGRb-b4Z_6KdpN1kkxTa1si0VpwCQ4' \
--header 'Cookie: JSESSIONID=7419F456FE1D998D403D9CEBC5D7E5C6; INGRESSCOOKIE=1704893476.325.311.23134|0f4091fceac04271d9e9e5a60a3d3e8f; token_type=Bearer; user_name=testAdminUser' \
--form 'pathLocation="Datafiles"' \
--form 'file=@"/Users/harish/Downloads/users_testing.csv"'

URL is wrong 

{{url}}/ECM/{{path}}/uploadSchemaFile


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

/{{path}}/ attibute is missing in URI

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.