Create a Task

The task is the basic building block in SmartTask. In the SmartTask application, middle pane is populated with tasks. When a task is selected, it opens up the right hand side detailed pane with selected task's parameters.

Create a Task

POST https://api.smarttask.io/v{api-version}/Task/CreateTask/{company_id}

Path Parameters

NameTypeDescription

api-version

string

API Version - 1.0

company_id

number

CompanyId of SmartTask organization

Headers

NameTypeDescription

Authorization

string

Authorization Bearer token

Request Body

NameTypeDescription

IsArchived

boolean

Whether the task is archived or not

CompanyId

number

CompanyId of organization

Taskname

string

Description

string

Description notes in HTML string

PriorityId

number

1 - No Label 2 - High 3 - Medium 4 - Low

CreatorUserId

number

UserId of the person who creates the task

AssignedUser

object

CompanyUserModel

DateModel

object

TaskDateModel

Status

number

0 - Incomplete 1 - Complete

Projects

array

ProjectInfoModel

Followers

array

Array of CompanyUserModel

Tags

array

Array of TagModel

ParentGTaskId

string

Parent Task Id

ContactIds

array

Array of ContactIds to link with the task

{
    "GTaskId": "fe899b3b-a328-45b2-9bd7-4cc2e71cc640",
    "CompanyId": 4, 
    "Taskname": "[Article] Stop feeling guilty about not working as hard as possible",
    "Description": null,
    "PriorityId": 2,
    "CreatedAt": "2019-03-14T11:49:55.813Z",
    "LastModifiedAt": "2019-04-23T03:06:35.177Z",
    "CreatorUserId": 70,
    "AssignedUser": {
      "FullName": "Dhwani",
      "Email": "outreach@pepsi.io",
      "UserId": 15878,
      "PicUrl": null
    },
    "DateModel": {
      "TypeId": 2,
      "Interval": 1,
      "DisplayDate": "2019-03-13T18:30:00.000Z",
      "DueDate": "2019-03-23T18:30:00.000Z"
    },
    "PlannedStart": null,
    "PlannedEnd": null,
    "StatusId": 0,
    "StatusChangedAt": null,
    "isArchived": false,
    "CompletionLocation": null,
    "Projects": [
      {
        "ProjectId": 7698,
        "Name": "Guest Posting"
      }
    ],
    "Followers": [
      {
        "FullName": "Sohan Parikh",
        "Email": "sohan@pepsi.com",
        "UserId": 70,
        "PicUrl": "https://smartstorage1.blob.core.windows.net/photos/UserPics/f12267e5-2d3e-4f07-8811-4411e9ff4055.png"
      },
      {
        "FullName": "Dhwani",
        "Email": "outreach@pepsi.com",
        "UserId": 15878,
        "PicUrl": null
      }
    ],
    "Files": [
      {
        "Id": 31386,
        "Name": "03-02-19 Stop feeling guilty about not working as hard as possible",
        "ObjectName": null,
        "FileUrl": "https://docs.google.com/document/d/1KxpbtasdadNkTaBKsgGAteuBJzq8HE9c8IGfQdhvYjP0/edit?usp=drive_web",
        "IconUrl": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.document",
        "ThumbnailUrl": null,
        "ContentType": "application/vnd.google-apps.document",
        "Type": "document",
        "Host": "Google Drive",
        "CreatedAt": "2019-03-14T11:50:42.163"
      }
    ],
    "Tags": [],
    "ParentTasks": [],
    "ParentGTaskId": null,
    "CompletionPercentage": 0,
    "CustomFieldTasks": [
		{
			"CFTId": 65568,
			"CustomFieldInfo": {
		  		"Type": "Enum",
		  		"Name": "Stage",
		  		"Description": null,
		  		"Precision": 0,
		  		"CreatedAt": "2019-05-15T13:09:03.4952908Z",
		  		"ModifiedAt": null
			},
			"TextValue": null,
			"NumberValue": null,
			"EnumValue": {
		  		"EnumId": 5,
		  		"CustomFieldId": 1,
		  		"Name": "In Production",
		  		"ColorId": 12,
		  		"IsEnabled": true,
		  		"OrderId": 5
			},
			"DatetimeValue":  null,
			"CreatedAt": "2019-05-15T13:09:03.4952908Z",
			"ModifiedAt": null
	  	}
	],
	"Reminders": [
        {
          "Id": 19168,
          "GTaskId": "a8eebfb9-187a-486d-8c75-77503d4ee2a6",
          "Type": 0,
          "OnlyIfPending": true,
          "OnDateTime": "2019-08-05T18:30:00"
        },
        {
          "Id": 19169,
          "GTaskId": "a8eebfb9-187a-486d-8c75-77503d4ee2a6",
          "Type": 1,
          "OnlyIfPending": false,
          "OnDateTime": "2019-08-16T06:30:00"
        }
    ]
  }

Last updated