Community articleCreating profiles codes using Administration API
Added by IBM contributorIBM on July 1, 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 add a profiles code to the Profiles application, send a codes entry document in Atom format to the appropriate resource of the Administration API.


Provide a profile entry Atom entry document as the POST data. The content type of the Atom entry document must be application/atom+xml. The following entries must be provided in the profile entry document:


	<id>,{country|department|empType|organization|workLocation}:{code value}</id>





All other entries are optional.


Method URI Description
POST /profiles/admin/atom/codes/ country
POST /profiles/admin/atom/codes/ department
POST /profiles/admin/atom/codes/ employee type
POST /profiles/admin/atom/codes/ organization
POST /profiles/admin/atom/codes/ work location
Content Type: application/atom+xml
To add a codes entry in the country table for the country of Andorra, complete the following steps. 1.Create a codes entry in the country table for the country of Andorra. The following XML snippet is a sample codes entry document. 2.Send a POST request to the /admin/atom/ resource and pass this document as input on the request.
  <title type="text">ad</title>
    href="" rel="edit"/>
  <content type="application/xml">
    <appData xmlns="">

           Andorra, Principality of