To update your profile entry, send an updated profile entry document in Atom format to the existing profile's edit web address.
All existing profile entry information is replaced with the new data. To avoid deleting all existing data, retrieve any data you want to retain first, and send it back with this request. For example, if you want to add a new tag to a profile entry, retrieve the existing tags, and send them all back with the new tag in the update request. See Retrieving a profile entry
for more information.
To find out which fields in a particular profile can be edited, look for the list of <editableField> elements in the service document of the person whose profile you want to edit. You cannot programmatically change which fields can be edited; that can only be done using wsadmin
commands. See Customizing the Profiles user interface
for more details. However, you can change the values stored in the editable fields for a profile by specifying new values for the editable fields represented as corresponding vCard values.
In addition to the default set of fields available for a profile that can be configured as editable by the administrator, the administrator can also add custom fields to a profile. Custom fields are added using extensions; see Adding custom extension attributes for Profiles
for more details. For information about how to edit the value of a custom field, see Working with profile extensions
To get the rel="edit" link for a specific person's profile, retrieve a feed of the profile and specify the output=vcard
parameter on the request. See Searching a user's profile
for more details.
Users can only update their own profiles. See Authenticating requests
for information about how to authenticate the request.
To update a profile entry:
1. Get the service document for the person's profile. See Retrieving the Profiles service document
2. Obtain the "profile.do" link from the response body and perform a GET with this link.
3. Find the "profileEntry.do" link in the response feed and use it to perform another GET method.
4. Provide a profile entry Atom entry document as the PUT data. The content type of the Atom entry document must be application/atom+xml.The content element of the profile entry must contain a vCard representation of the profile, and the type attribute must be set to text.
Use the following table as a guideline of the vCard values that represent editable profile fields:
Table 2. vCard values to use to represent new values for profile fields
<editablefield> element name
TEL;X_IP and TEL;PAGER*