API reference
All operations
TASK

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.

PUT/api/v2/tasks/{task-id}

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Parameters

task-idpathinteger · int32required
X-On-Behalf-Ofheaderstring · email

Email 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

application/jsonrequired

The complete task data, including `TaskId`.

UpdateTaskRequest
  • taskIdinteger · int32
  • userIDinteger · int32
  • companyIDinteger · int32
  • contactIDinteger · int32
  • relatedRecordIDinteger · int32
  • relatedRecordTypestringnullable
  • relatedTostringnullable
  • subRelatedRecordTypestringnullable
  • subRelatedRecordIdinteger · int32nullable
  • subjectstringnullable
  • commentsstringnullable
  • dueDatestring · datenullable
  • statusstringnullable
  • prioritystringnullable
  • reminderboolean
  • utcReminderDatestring · date-timenullable

Responses

Task updated successfully.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

dataTaskDto
  • taskIdinteger · int32
  • companyIdinteger · int32
  • companyNamestringnullable
  • userIdinteger · int32
  • ownerstringnullable
  • contactIdinteger · int32
  • contactstringnullable
  • relatedRecordIdinteger · int32
  • relatedRecordTypestringnullable
  • relatedTostringnullable
  • subjectstring
  • commentsstringnullable
  • dueDatestring · date
  • completeDatestring · date-timenullable
  • statusstringnullable
  • businessStepstring
  • prioritystringnullable
  • reminderboolean
  • reminderRepeatSchedulestring
  • utcReminderDatestring · date-timenullable
  • reminderDatestring · date-timenullable
  • createdstring · date-timenullable
  • lastModifiedstring · date-timenullable
  • enteredBystringnullable
  • modifiedBystringnullable
  • deletedboolean
  • eventIdstring
  • calendarIdstring