Updates an existing task (full replace).
Send the task's ID both in the URL and as TaskId in the body. If the two differ, the request is rejected with 400 and nothing is changed. This is a full replace: Subject, Comments, Status, Priority, UserID (owner), ContactID, RelatedRecordID, DueDate, Reminder and UDF values are overwritten with the values in the body (omitted text fields are cleared). RelatedRecordType is not changed. The task's company is derived from the related record. A status of Completed records the completion date; any other status clears it. When UtcReminderDate is omitted, the task's pending reminder notification is removed. A client_credentials caller may send the X-On-Behalf-Of header with a user's email; that user is then recorded as having modified (or completed) the task.
/api/v2/tasks/{task-id}Authentication
Choose one supported method for this request.
Parameters
task-idpathinteger · int32requiredX-On-Behalf-Ofheaderstring · emailEmail of an active user to act as. That user is recorded as the owner/author of what this request writes. Only client_credentials tokens may send it (others get 403); an email that matches no active user gets 400.
Request body
The complete task data, including `TaskId`.
taskIdinteger · int32userIDinteger · int32companyIDinteger · int32contactIDinteger · int32relatedRecordIDinteger · int32relatedRecordTypestringnullablerelatedTostringnullablesubRelatedRecordTypestringnullablesubRelatedRecordIdinteger · int32nullablesubjectstringnullablecommentsstringnullabledueDatestring · datenullablestatusstringnullableprioritystringnullablereminderbooleanutcReminderDatestring · date-timenullable
Responses
Task updated successfully.
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
taskIdinteger · int32companyIdinteger · int32companyNamestringnullableuserIdinteger · int32ownerstringnullablecontactIdinteger · int32contactstringnullablerelatedRecordIdinteger · int32relatedRecordTypestringnullablerelatedTostringnullablesubjectstringcommentsstringnullabledueDatestring · datecompleteDatestring · date-timenullablestatusstringnullablebusinessStepstringprioritystringnullablereminderbooleanreminderRepeatSchedulestringutcReminderDatestring · date-timenullablereminderDatestring · date-timenullablecreatedstring · date-timenullablelastModifiedstring · date-timenullableenteredBystringnullablemodifiedBystringnullabledeletedbooleaneventIdstringcalendarIdstring