https://lakefs.io/ logo
#dev
Title
# dev
v

Vaibhav Kumar

05/07/2023, 6:22 PM
While trying to hit the API I am getting auth error. Can someone help?
n

Niro

05/07/2023, 7:46 PM
Hi @Vaibhav Kumar, The
ls
GET command doesn't accept a body. In general - you need to add the credentials in the
Authorization
section, configured as
Basic Auth
v

Vaibhav Kumar

05/08/2023, 6:09 PM
thanks The above one worked
I am also trying the below API but it need some path variable. Not sure what value I need to pass in it?
n

Niro

05/08/2023, 7:28 PM
You are invoking an API to get an object's contents, the path parameter is the path to the object, relative to the branch uri. You can add this parameter under the Params tab
v

Vaibhav Kumar

05/09/2023, 2:14 PM
thanks @Niro
heart lakefs 1