Re: URL to Update an attribute

46 views
Skip to first unread message

Acey

unread,
Jun 18, 2012, 3:36:23 PM6/18/12
to version...@googlegroups.com
Hi Dan,

One way to do this is to set the attribute using the "set" action in the XML payload that you pass.


How to update a scalar attribute on an asset

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>

Remarks

The response includes the URL of the exact version of the asset that was just updated.


Hope that helps...

Acey Bunch
Technical Product and Agile Consultant
VersionOne

On Monday, June 18, 2012 3:25:57 PM UTC-4, danno wrote:
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
 
Reply all
Reply to author
Forward
0 new messages