New API activity options

Currently we have this format to create an activity:

<request>
  <parent>353687</parent>
  <data>
    <title>Inspect Property</title>
    <duedate>2009-10-11</duedate>
    <priority>3</priority>
  </data>
</request>

Today, we have two more parameters that we can provide, “after” and “before” which will place the activity in a specific position. For instance:

<request>
  <parent>353687</parent>
  <after>353123</after>
  <data>
    <title>Inspect Property</title>
    <duedate>2009-10-11</duedate>
    <priority>3</priority>
  </data>
</request>

Another neat feature of this is you can specify a different “parent” value to move the activity to another contact, company, or project blog.

<request>
  <parent>34024952</parent>
</request>

… here’s a cURL example doing the same:

curl -u '{email}:{token}' -v -X PUT -H 'Content-Type: application/xml' -d '<request><parent>34024952</parent></request>' https://secure.solve360.com/contacts/note/3428622

Posted by