Updating a scalar attribute on an asset is accomplished by marking the attribute with act="set", and filling in the new value in the element's text. This post will update the Phone attribute of the Member with ID 20:
POST /VersionOne/rest-1.v1/Data/Member/20 HTTP/1.1 Content-Type: text/xml; charset=utf-8 Content-Length: 78 <Asset> <Attribute name="Phone" act="set">555-555-1212</Attribute> </Asset>
The response is:
<Asset href="/VersionOne/rest-1.v1/Data/Member/20/173" id="Member:20:173"> <Attribute name="Phone">555-555-1212</Attribute> </Asset>
I am using a custom list (http://xxx/VersionOne/rest-1.v1/Data/List?where=AssetType='Custom_business_owners') and the list displays based on the Order attribute which is set upon record creation. I would like the list to be displayed alphabetical on name. To do this I need to set the Order attribute.My question is, what is the URL POST syntax I need to run to set the Order attribute of a specific record in this table/list?Thanks,Dan