Update a Task in the CRM

Update a Task in the CRM

Hello,

I'm trying to create and update Tasks, and I'm running into a problem.  i have simplified my code down to the following (i.e. getting and updating a task having made no changes to it), which throws an exception:

ZCRMModule tasks = ZCRMModule.GetInstance("Tasks");
ZCRMRecord task = (ZCRMRecord)tasks.GetRecord(206228000003200163).Data;
APIResponse aPIResponse = task.Update();

Any help or guidance on this would be greatly appreciated.

Thank you

Phil