Amit Kanala Amit Kanala - 2 months ago 8
Linux Question

Create folder api using egnyte but Generate error via linux

Generate this error by Terminal

Code Are as below

Input This Code :

curl -v -X POST -H "Authorization: Bearer tv6awqyxe9p2wfd8hhn94ftk" -H "Content-Type: aaction":"add_folder"}' https://nxsol.egnyte.com/pubapi/v1/fs/Shared/test


Output This Error

<h1>Developer Inactive</h1>


enter image description here

Answer

I have gone through the logs and I could see the error has invalid token.

Could you please get the auth token again and then run the command to add the folder?

curl -v --request POST -H "Content-Type: application/x-www-form-urlencoded" \-d grant_type=password -d username=test -d password='password' \-d client_id=the api key you have https://nxsol.egnyte.com/puboauth/token