Activity

Tasks.create

Creates a Task record.

post/entities/Tasks

Request

Query parameters

validation-levelinteger

Bit mask that relaxes validation on this write. 0 (the default) validates everything. Bits: 2 skip unchanged fields, 4 skip admin-defined validations, 8 allow read-only fields, 16 skip relation checks, 32 skip value checks, 64 skip invalid recalculations, 128 skip step-checklist gates, 256 add conditional field requirements, 512 skip uniqueness checks. Add bits together (20 = 4 + 16); member names and comma lists such as 4,16 work too. A value with an internal-only bit is refused with HTTP 400, code 117.

Request body

media_transcription_idstring uuid

Id of the linked Media record holding the activity's call recording / transcription, when available.

modifiedstring date-time

Last modification time.

createdstring date-time

Creation time.

activity_type_idstring uuid

Id of the task type.

call_durationinteger

Duration of the recorded call. Set automatically when the task is linked to a call log.

call_idstring uuid

Id of the linked call record.

call_outcome_idstring uuid

Id of the call outcome option recorded for the call (e.g. Reached, Voicemail, No Answer).

currency_exchange_rates_list_idstring uuid

Id of the currency exchange rate list applied to this task.

descriptionstring

Free-form description of what the task entails.

due_datestring date

Date by which the task is expected to be completed.

durationnumber double

Estimated duration of the task. Stored as a duration value (days/hours/minutes).

owner_idstring uuid

Id of the task owner.

priority1 | 2 | 3

Priority level of the task: Low, Medium or High.

Integer enum value: 1 - Low, 2 - Medium, 3 - High

share_mode0 | 1 | 2 | 3

Sharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users).

Integer enum value: 0 - Standard, 1 - Private, 2 - AllView, 3 - AllEdit

start_datestring date

Date when work on the task is scheduled to begin.

status1 | 2 | 3 | 4 | 5

Current status of the task (NotStarted, InProgress, Waiting, Completed, Deferred). Toggling to Completed marks any linked checklist items as done.

Integer enum value: 1 - NotStarted, 2 - InProgress, 3 - Waiting, 4 - Completed, 5 - Deferred

subjectstring required

Short summary line shown in lists and notifications.

unit_idstring uuid

Id of the sales unit.

revisioninteger

Revision when entity was lastly changed.

call_sidstring

Identifier (SID) of a phone call made through Coevera calling, to attach that call to the task; null detaches the call. Write-only.

Example request

{
  "media_transcription_id": "01234567-abcd-dcba-ffff-000000000000",
  "modified": "2019-01-01T00:00:00",
  "created": "2019-01-01T00:00:00",
  "activity_type_id": "01234567-abcd-dcba-ffff-000000000000",
  "call_duration": 1,
  "call_id": "01234567-abcd-dcba-ffff-000000000000",
  "call_outcome_id": "01234567-abcd-dcba-ffff-000000000000",
  "currency_exchange_rates_list_id": "01234567-abcd-dcba-ffff-000000000000",
  "description": "string",
  "due_date": "2019-01-01",
  "owner_id": "01234567-abcd-dcba-ffff-000000000000",
  "priority": 1,
  "start_date": "2019-01-01",
  "status": 1,
  "subject": "string",
  "unit_id": "01234567-abcd-dcba-ffff-000000000000",
  "revision": 1,
  "call_sid": "string"
}

Response

The created Task record.

successboolean

True when the request succeeded; false on error.

Example response

{
  "success": true,
  "data": {
    "id": "01234567-abcd-dcba-ffff-000000000000",
    "active_reminder": "2019-01-01T00:00:00",
    "media_transcription_id": "01234567-abcd-dcba-ffff-000000000000",
    "modified": "2019-01-01T00:00:00",
    "created": "2019-01-01T00:00:00",
    "activity_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "call_duration": 1,
    "call_id": "01234567-abcd-dcba-ffff-000000000000",
    "call_outcome_id": "01234567-abcd-dcba-ffff-000000000000",
    "currency_exchange_rates_list_id": "01234567-abcd-dcba-ffff-000000000000",
    "description": "string",
    "due_date": "2019-01-01",
    "owner_id": "01234567-abcd-dcba-ffff-000000000000",
    "priority": 1,
    "start_date": "2019-01-01",
    "status": 1,
    "subject": "string",
    "table_name": "string",
    "unit_id": "01234567-abcd-dcba-ffff-000000000000",
    "revision": 1,
    "exchange_entity_id": "string",
    "gapi_entity_id": "string",
    "o365_entity_id": "string",
    "formatted_name": "string",
    "modified_by_user": "2019-01-01T00:00:00"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.