1
假设我正在通过API创建用户或禁用用户。版本1中的所有更改都会通过更改评论创建一个Moment。我如何使API调用与API调用一起提交注释?如何在通过Version One API进行更改时提交更改注释?
例如,创建用户时,可能需要发表评论“通过自动化系统创建”。当我用下面的例子来创建一个用户:
POST /VersionOne/rest-1.v1/Data/Member HTTP/1.1
Host: www14.v1host.com
Content-Type: application/xml
<Asset href="/v1sdktesting/rest-1.v1/New/Member">
<Attribute name="Name" act="set">Andre Agile</Attribute>
<Attribute name="Nickname" act="set">Andre</Attribute>
<Attribute name="Username" act="set">andre.agile</Attribute>
<Attribute name="Email" act="set">[email protected]</Attribute>
<Attribute name="IsCollaborator" act="set">false</Attribute>
<Attribute name="NotifyViaEmail" act="set">false</Attribute>
<Attribute name="SendConversationEmails" act="set">false</Attribute>
<Relation name="DefaultRole" act="set">
<Asset href="/v1sdktesting/rest-1.v1/Data/Role/4" idref="Role:4" />
</Relation>
</Asset>