Community articleUpdating profiles codes using Administration API
Added by IBM contributorIBM on May 7, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.

To update a code definition, send an updated code entry document in Atom format to the appropriate resource of the Administration API.
All profile entry information will be replaced with new data. To avoid deleting existing data, retrieve any data you want to retain first, and send it back with this request. See Retrieving profile entries using the Administration API for more information.


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 following is an example of an entry document for a work location RN, which corresponds to sample data contained in the TDI solution:

<content type="application/xml">
<appData xmlns="">
Casino Row
Tropicana Hotel



Method URI Description
PUT /profiles/admin/atom/codes/ country
PUT /profiles/admin/atom/codes/ department
PUT /profiles/admin/atom/codes/ employee type
PUT /profiles/admin/atom/codes/ organization
PUT /profiles/admin/atom/codes/ work location
Content Type: application/atom+xml
Name Type Optional Description
string No Unique ID that represents a specific code. This value is specified in the <id> such as <id>,</id>
Content Type: application/atom+xml
Code Description
Indicates that the profile entry was successfully updated. If an error occurs, this header contains one of the error codes.
Bad Request
Not Found
1.Retrieve the profile entry for RN by sending the following request:
GET /profiles/admin/atom/codes/ 

2.Make a copy of the returned entry document.

3.In the copy, edit the value of the <data> element associated with the <key> element to read as follows:
<>The Strip</>

4.Do not remove or edit any other entries. Save and close the updated profile entry.

5.Update the code entry in the Profiles database by sending a PUT request to the web address specified in the edit link of the code document. For example:
PUT /profiles/admin/atom/codes/