User Edit
URL
http://www.historypin.org/en/api/user/save.json
Postdata
If an image is sent the postdata have to be sent in mulipart form data format.
- id (integer, required) - A value representing the User Identification Number (ID)
- name (string)
- description (string)
- year_of_birth (integer) - integer bigger than 1900
- twitter (string) - twitter link
- facebook (string) - facebook link
- google_plus (string) - google plus link
Postdata Files
If an image is sent the postdata have to be sent in mulipart form data format.
- image - user avatar
Example Response
{
"id" : "867",
"image" : "/channels/img/867/logo/1/dim/225x225/crop/1/",
"name" : "Karamfil",
"description" : "Tell the world something about yourself ",
"place_id" : "1244",
"external_site" : "http://www.google.com/",
"twitter" : "",
"facebook" : "",
"google_plus" : ""
}
Response may contain error:
{
"error" : {"field": "name", "type": "naughty"},
...
}