and more in a single search tool across platforms. Read the announcement here. |
01/10/2024 05:40 AM
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.
Any idea how to avoid this?
Best regards
Harish
Solved! Go to Solution.
01/10/2024 05:58 AM - edited 01/10/2024 05:59 AM
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
01/10/2024 07:08 AM
Hi @pmahalle ,
Yes, we are using the Bearer token. and also i generate a new token everytime and use it before calling the API
01/10/2024 07:50 PM
Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
01/10/2024 09:48 PM
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"'
01/10/2024 09:53 PM
URL is wrong
{{url}}/ECM/{{path}}/uploadSchemaFile
01/11/2024 12:16 AM
/{{path}}/ attibute is missing in URI