Update an Activity
PUT {{base_url}}/activity/:ActivityID
Use this endpoint to update a single activity in the Activities hub.
For example, here is a request, using cURL, to update the Type
and EndDateSort
fields for the activity with ActivityID
set to ACTIVITYID
.
In this example, the existing Type
was originally set to EMail
which did not match the subject of the existing entry. So, this example scenario demonstrates updating the type to match.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
requiredFieldValidation | string | Optional. |
The flag that indicates whether or not the validation for required screen designer fields is needed.
Use "N" if you want to bypass the validation. Otherwise, the default is "Y," which enforces the validation.
NOTE: This does not apply to required system fields. |
| startWorkflow
| string | | Optional.
The flag that indicates whether or not the trigger for a workflow is initiated.
Use "N" if you want to bypass the trigger. Otherwise, the default is "Y," which initiates the workflow. |
Request Body
{"ActivityID"=>"SANDERSON1055885660855", "Type"=>"Meeting", "StartDate"=>"2007-06-03T22:00:00.000", "EndDate"=>"2007-06-03T22:30:00.000", "HasNotes"=>"N", "Notes"=>"", "CompletionInd"=>"N", "Subject"=>"Client Visit", "RecurrType"=>"Weekly", "RecurrEndDate"=>"", "CampaignID"=>"", "MktName"=>"", "ProjName"=>"", "WBS1"=>"", "EndDateSort"=>"No End Date Meeting", "Attendees"=>"Steve Anderson, AIA", "Associations"=>"", "InstanceStartDate"=>"2007-06-03T22:00:00.000", "StartDateObj"=>"2007-06-03T22:00:00.000", "EndDateObj"=>"2007-06-03T22:30:00.000", "RecurrStartDate"=>"", "AllDayEventInd"=>"N", "RecurrenceInd"=>"N", "RecurrDailyFreq"=>1, "RecurrDailyWeekDay"=>"N", "RecurrWeeklyFreq"=>1, "RecurrWeeklySun"=>"N", "RecurrWeeklyMon"=>"N", "RecurrWeeklyTue"=>"N", "RecurrWeeklyWed"=>"N", "RecurrWeeklyThu"=>"N", "RecurrWeeklyFri"=>"N", "RecurrWeeklySat"=>"N", "RecurrMonthlyFreq"=>1, "RecurrMonthlyOccur"=>0, "RecurrMonthlyDay"=>0, "RecurrMonthlyOccurInd"=>"N", "RecurrMonthlyOccurDay"=>0, "RecurrMonthlyOccurFreq"=>0, "RecurrYearlyMonth"=>0, "RecurrYearlyDay"=>0, "RecurrEndType"=>"N", "Employee"=>"00201", "RP"=>"N", "acType"=>"Mailing", "ShowTimeAs"=>"Busy", "PrivateInd"=>"N", "ReminderInd"=>"Y", "ReminderUnit"=>15, "ReminderMinHrDay"=>"Minutes", "ReminderDate"=>"2007-06-03T21:45:00.000", "isTask"=>"Y", "isCalendar"=>"N", "MaxOccurences"=>0, "RecurrYearlyOccurInd"=>"N", "RecurrYearlyOccurDay"=>0, "RecurrYearlyOccurMonth"=>0, "RecurrYearlyOccur"=>0, "Location"=>"", "WBS2"=>"", "WBS3"=>"", "ClientName"=>"", "ClientID"=>"", "CreateEmployee"=>"00201", "TypeName"=>"Mailing", "ContactID"=>"", "LeadID"=>"", "Priority"=>"Medium", "custTestQuery"=>"", "custTEst1"=>"", "custUserdefinedfieldjb"=>"", "PrimaryClient"=>"", "PriorityDesc"=>"Medium", "Duration"=>30, "Owner"=>"00201", "OwnerName"=>"Steve Anderson, AIA", "ContactName"=>"", "CreateUser"=>"Steve Anderson, AIA", "CreateDate"=>"2007-06-17T21:34:41.000", "ModUser"=>"Steve Anderson, AIA", "ModDate"=>"2007-06-17T21:34:41.000", "TaskCompletionDate"=>"", "RecurrID"=>"", "OutlookType"=>"Generic", "Vendor"=>"", "VendorName"=>"", "ContactIDForVendor"=>"", "ContactNameForVendor"=>"", "ContactPhoneForVendor"=>"", "EndDateFilter"=>"No End Date Mailing", "ActivityEmployeeContactsRow"=>[{"ActivityID"=>"SANDERSON1055885660855", "RecordType"=>"employee", "FirstLast"=>"Steve Anderson, AIA", "ContactID"=>"", "Employee"=>"00201", "PrimaryInd"=>"", "ContactHasPhoto"=>"N", "Email"=>"lrabideau@ma.deltek.com", "ClientID"=>"", "Phone"=>"617", "CellPhone"=>"", "Owner"=>"Y", "LastFirst"=>"Anderson, Steve", "Title"=>"Project Manager", "RecordID"=>"00201"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | Required. |
The type of content supported by the API endpoint. |
| Authorization
| string | | Required.
The type of authorization supported by the API endpoint. |
RESPONSES
status: OK
[{"ActivityID":"SANDERSON1055885660855","Type":"Meeting","StartDate":"2007-06-03T22:00:00.000","EndDate":"2007-06-03T22:30:00.000","HasNotes":"N","Notes":"","CompletionInd":"N","Subject":"Client Visit","RecurrType":"Weekly","RecurrEndDate":"","CampaignID":"","MktName":"","ProjName":"","WBS1":"","EndDateSort":"No End Date Meeting","Attendees":"Steve Anderson, AIA","Associations":"","InstanceStartDate":"2007-06-03T22:00:00.000","StartDateObj":"2007-06-03T22:00:00.000","EndDateObj":"2007-06-03T22:30:00.000","RecurrStartDate":"","AllDayEventInd":"N","RecurrenceInd":"N","RecurrDailyFreq":1,"RecurrDailyWeekDay":"N","RecurrWeeklyFreq":1,"RecurrWeeklySun":"N","RecurrWeeklyMon":"N","RecurrWeeklyTue":"N","RecurrWeeklyWed":"N","RecurrWeeklyThu":"N","RecurrWeeklyFri":"N","RecurrWeeklySat":"N","RecurrMonthlyFreq":1,"RecurrMonthlyOccur":0,"RecurrMonthlyDay":0,"RecurrMonthlyOccurInd":"N","RecurrMonthlyOccurDay":0,"RecurrMonthlyOccurFreq":0,"RecurrYearlyMonth":0,"RecurrYearlyDay":0,"RecurrEndType":"N","Employee":"00201","RP":"N","acType":"Meeting","ShowTimeAs":"Busy","PrivateInd":"N","ReminderInd":"Y","ReminderUnit":15,"ReminderMinHrDay":"Minutes","ReminderDate":"2007-06-03T21:45:00.000","isTask":"N","isCalendar":"Y","MaxOccurences":0,"RecurrYearlyOccurInd":"N","RecurrYearlyOccurDay":0,"RecurrYearlyOccurMonth":0,"RecurrYearlyOccur":0,"Location":"","WBS2":"","WBS3":"","ClientName":"","ClientID":"","CreateEmployee":"00201","TypeName":"Meeting","ContactID":"","LeadID":"","Priority":"Medium","custTestQuery":"","custTEst1":"","custUserdefinedfieldjb":"","PrimaryClient":"","PriorityDesc":"Medium","Duration":30,"Owner":"00201","OwnerName":"Steve Anderson, AIA","ContactName":"","CreateUser":"Steve Anderson, AIA","CreateDate":"2007-06-17T21:34:41.000","ModUser":"Billy Boy Charles, Jr.","ModDate":"2018-03-09T21:20:48.727","TaskCompletionDate":"","RecurrID":"","OutlookType":"Calendar","Vendor":"","VendorName":"","ContactIDForVendor":"","ContactNameForVendor":"","ContactPhoneForVendor":"","EndDateFilter":"No End Date Meeting"}]