Update a record partially
Request |
The body is an XML representation of part of the record to be updated. The element Id in the request body determines which record is to be updated. |
Parameters |
|
Headers |
|
Response | No content. |
Status |
|
Limitation | This REST API does not support updating a record partially for the Role entity in the PROVISIONING system data container. |
Sample requests
Suppose there is a record like below in an entity Family:
<Family>
<Id>1</Id>
<Name>Lee</Name>
<Kids>
<Kid>
<Name>David</Name>
<Age>10</Age>
<Habits>
<Habit>Basketball</Habit>
<Habit>Tennis</Habit>
</Habits>
</Kid>
<Kid>
<Name>James</Name>
<Age>8</Age>
</Kid>
<Kid>
<Name>Kate</Name>
<Age>6</Age>
</Kid>
</Kids>
</Family>
With the delete value set to true, the pivot value set to Family/Kids/Kid, and the key value set to /Name, the following sample request will remove the multi-occurence element Kid identified by James:
<Person>
<Id>1</Id>
<Kids>
<Kid>
<Name>James</Name>
</Kid>
</Kids>
</Person>
With the overwrite value set to false, the delete value set to false, the pivot value set to Family/Kids/Kid[1]/Habits/Habit (Kid[1] indicates the first kid) , the key value not specified or set to ., and the position value set to 2, the following sample request will append two values to the multi-occurence element Habit after <Habit>Basketball</Habit> for the first kid:
<Person>
<Id>1</Id>
<Kids>
<Kid>
<Habits>
<Habit>Football</Habit>
<Habit>Table tennis</Habit>
</Habits>
</Kid>
</Kids>
</Person>