| Methods / Methods for Manual Work Items (Tasks) | 
| Name | Type | Description | 
|---|---|---|
| wID | string | A 32-byte unique work item (task) ID that represents a manual work item. | 
| attribute | NameValue | A NameValue array that contains the attributes that needs to be updated in the work item. For a manual work item, the following attributes can be updated: For an automatic work item, the following attributes can be updated: 
 For an automatic work item, only DUE_DATE can be updated. | 
IWFWorkflowService svc = GetWorkflowService();
string workItemID = …// work item ID of manual work item or automatic work item.
try
	{
    NameValue[] attrs = NameValue.Array( 
    "NAME", "[New Name]",
    "DUE_DATE", [DateTime]); // for example, DateTime.Now.AddDays(3.0)
    svc.UpdateWorkItem(workItemID, attrs );
	}
catch (Exception ex)
	{
    Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}