Update Activity

Use this request to edit information on an existing Activity record. You cannot use this request to create a new activity record.

REST

Request

https://api.neoncrm.com/neonws/services/api/account/updateActivity?userSessionId=[session id]&Activity.activityId=1&Activity.subject=subject&Activity.note=note&Activity.startDateTime=2012-11-19T15:00:54.063+08:00&Activity.endDateTime=2012-12-19T15:00:54.063+08:00&Activity.clientId=3480&Activity.systemUserId=3&Activity.activityStatus.id=1&Activity.activityStatus.name=Not%20Started&Activity.activityPriority=Normal

Response

{
    "updateActivityResponse": {
        "operationResult": "SUCCESS",
        "responseDateTime": "2012-12-29T01:09:23.624-06:00",
        "activityId": 1
    }
}

SOAP

Request

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:neon="http://www.z2systems.com/schemas/neonws/">
   <soapenv:header>
       <soapenv:body>
          <neon:updateactivityrequest>
             <usersessionid>T1357624094982</usersessionid>
             <activity>
                <activityid>2</activityid>
                <subject>test activity 1</subject>
                <note>note</note>
                <startdatetime>2012-11-19T15:00:54+08:00</startdatetime>
                <enddatetime>2012-12-19T15:00:54+08:00</enddatetime>
                <clientid>5788</clientid>
                <systemuserid>3</systemuserid>
                <activitystatus>
                   <id>2</id>
                </activitystatus>
                <activitypriority>Normal</activitypriority>
             </activity>
          </neon:updateactivityrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:updateactivityresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsedatetime>2013-01-08T01:39:38.526-06:00</responsedatetime>
         <activityid>2</activityid>
      </ns2:updateactivityresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
Activity.activityId Yes The ID of the activity being updated.
Activity.subject Yes Subject field for the activity record.
Activity.note
Activity.startDateTime Yes Format example: [2012-11-19T15:35:53+08:00]
Activity.endDateTime Format example: [2012-11-19T15:35:53+10:00]
Activity.clientId Yes Account ID of the constituent record associated with this activity
Activity.systemUserId Yes Account ID of the system user associated with this activity
Activity.activityStatus.id Yes Possible values are found in the List Activity Status API method.
Activity.activityStatus.name Possible values are found in the List Activity Status API method.
Activity.activityPriority Yes Possible values: High, Normal, Low

Response Parameters

Name Required Description
activityId Yes The Activity ID of the record created

Error Codes

Code Text Description
10200 Activity Id is required
10201 Activity Id is invalid.
10202 Client account id is invalid.
10203 System user id is invalid.
10204 Status id or name is required.
10205 Status id or name invalid.
10206 Subject is required.
10207 Priority is required.
10208 Start date time is required.