Attache or Upload Document using REST api

Hi,

I am trying to set profile image using rest api.

Syntax:
URL: http://localhost:9090/api/resource/User/saurabh6790@gmail.com

METHOD: PUT

Parameters : data = {
“new_password”: “password”, “user_image”:“/home/saurabh/Downloads/Untitled.png”
}

But this not uploading image to in Files.

How we can upload image using REST api?

Thanks,
Saurabh

1 Like

It run Ok. I can try with
http://localhost/api/resource/User/admin@admin.com?data={“first_name”: “!ssRssobert”,“new_password”: “huy”,“user_image”: “/root/Desktop/images.jpeg”}
not using data = {}. This is " " between “=”