REST API - updateResource

The table summarizes the REST API - updateResource.

Request

Format
PUT <baseurl>/orgresource/update
Body updateResource element: The details of the Resources to be updated. Includes the organization model major version in which any referenced organizational entities are to be found.

Response

JSON Returns a JSON representation of the content of the updateResourceResponse element.
XML Returns the content of the updateResourceResponse element (from the OrgResourceService schema).

Example

Request
PUT <baseurl>/orgresource/update
Request body
<xml-fragment>

  <resource guid="61E1571D-B8D5-432A-9E73-D266F6B69EE7">

    <set-label value="New Label Name"/>

    <add-position guid="_eKLekDgTEeKaId_w2iprkQ"/>

    <remove-position guid="_sNENcCUuEeKEDc1k4SgbXg"/>

  </resource>

</xml-fragment>
Response
 { "resource":

       {

           "@model-version": "2",

           "@guid": "61E1571D-B8D5-432A-9E73-D266F6B69EE7",

           "@name": "Clint Hill",

           "@label": "New Label Name",

           "@resource-type": "HUMAN",

           "@container-id": "1",

           "@container-name": "easyAs",

           "position":

           [

               {

                   "@guid": "_eKLekDgTEeKaId_w2iprkQ",

                   "@name": "Developer",

                   "@label": "Developer"

               },

               {

                   "@guid": "_abdxIDgTEeKaId_w2iprkQ",

                   "@name": "Manager",

                   "@label": "Manager"

               }

           ],

           "privilege":

           [

               {

                   "@guid": "_0KoeADgTEeKaId_w2iprkQ",

                   "@name": "AdminPrivilege",

                   "@label": "Admin Privilege",

                   "org-unit":

                   {

                       "@guid": "_WmV5sDgTEeKaId_w2iprkQ",

                       "@name": "Management",

                       "@label": "Management"

                   }

               },

               {

                   "@guid": "_0KoeADgTEeKaId_w2iprkQ",

                   "@name": "WorkAllocation",

                   "@label": "WorkAllocation",

                   "org-unit":

                   {

                       "@guid": "_QGJjIDgTEeKaId_w2iprkQ",

                       "@name": "IndexLicensing",

                       "@label": "Index Licensing"

                   }

               }

           ],

           "ldap-reference":

           {

               "@ldap-alias": "easyAs",

               "@ldap-dn": "OU=Clint Hill, OU=Swindon, OU=AllEmployees, O=easyAsInsurance"

           }

       }

    }