developer documentation r22125

Update profile

Update profile

/action/v2/updateprofile

Updates user information. All params can be marked as required.

Requires a form token

Requires a session token - the user must be logged in

Supports redirectUrl param of fm:Form component

Example

<fm:Form action="/action/v2/updateprofile" method="post"> <fm:Form_Username name="user" /> <fm:Form_Password name="password" /> <fm:Form_TextInput name="firstname" /> <fm:Form_TextInput name="lastname" /> <fm:Form_TextInput name="address1" /> <fm:Form_TextInput name="city" /> <fm:Form_TextInput name="state" /> <fm:Form_TextInput name="country" /> <fm:Form_Custom><button type="submit">Update Profile</button></fm:Form_Custom> </fm:Form>
Name Required Description
user Username. Can only contain alphanumeric chars, underscore and dash. Must be between 6 and 40 characters long.
password Password of the user. Must be between 6 and 40 characters long.
email Must be a valid email. Limited to 100 characters
firstname Must be alpha chars, limited to 40.
lastname Must be alpha chars, limited to 40.
address1 User's address. Limited to 80 chars.
address2 Additional address space. Limited to 80 chars.
city User's city. Limited to 100 chars.
state User's state/province. Must be a state or province code (2 chars)
country User's country. Limited to 40 alpha chars.
postalcode User's postal/zip code. Limited to 10 chars, alphanumeric and space are allowed.
gender User's gender. Valid values: "M" or "F"
birthdate User's birth date. Must be a date format (YYYY-MM-DD). Use <fm:Form_Date> component to draw the select boxes
phone User's phone number. Limited to 15 chars.
cellphone User's cellphone number. Limited to 15 chars.
website User's website. Must be a valid url. Limited to 100 chars.
occupation User's occupation. Limited to 30 chars.
description User's description (about me). Limited to 65535 chars
geo_latitude Latitude of the user's location. Must be a latitude coordinate of type double (e.g. 43.6457276560286)
geo_longitude Longitude of the user's location. Must be a longitude coordinate of type double (e.g. -79.4485116004944)
<< 7.5.7 Resend activation 7.5.9 Upload avatar >>