Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Problem updating user profile using curl command

Avatar

Avatar
Validate 10
Level 2
Rui_J
Level 2

Likes

4 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
Rui_J
Level 2

Likes

4 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
Rui_J
Level 2

25-05-2017

I want to update the user profile using curl command. For example, I want to set profile/age=30 for a user.

So this is the command I am using.

curl -u admin:admin -Fprofile/age=30 http://localhost:4502/home/users/JLhct5w1LuPVxGs0X5D5u.rw.html

It updates alright. But the problem is the age property type is a String instead of Long. How can I set the age type to "Long" in Curl command? I tried -Fprofile/age@TypeHint=Long, but it doesn't work.

Please help.

Thanks