Purpose

Complete a Task.

Mandatory Header

Header name: Authorization
Header Value: Zoho-oauthtoken d92d401c803988c5cb849d0b4215f52

Request URL

https://connect.zoho.com/pulse/api/completeTask

OAuth Scope

zohopulse.tasks.UPDATE

Parameters

ParameterParameter DescriptionType

scopeID (Required)

Network id. Can be got from the network list API

long

taskId (Required)

task id

long

 

Sample URL

Copiedhttps://connect.zoho.com/pulse/api/completeTask?scopeID=929000000015001&taskId=929000000640192

Sample Response

Copied{
  "completeTask": {
    "task": {
      "title": [
        {
          "text": "Integration request from "
        },
        {
          "mailto": "test@test.com"
        }
      ],
      "desc": [
        {
          "text": "Test Name has submitted an integration request. "
        },
        {
          "linkUrl": "https://connect.zoho.com/portal/intranet/home/customapps/customapp/remita-e-collection-uat-sign-off-document-1dc2726813eaf4cb5aa3f6e6e5ee2b57bc49c9cb57583629/record-summary/form/User_Acceptance_Test_Sign_off_Document/1417059000000572003"
        }
      ],
      "id": "929000000640192",
      "percentage": "100",
      "status": "4",
      "priority": "High",
      "createdTime": "1496392982438",
      "formattedCreatedTime": "01 Jun 2017",
      "isCompleted": "true",
      "canArchive": "true",
      "completedTime": "02:13 AM",
      "completedBy": {
        "zuid": "2060758",
        "id": "2060758",
        "name": "Patricia Boyle",
        "canFollow": "true"
      },
      "streamId": "929000000640194",
      "isPrivate": "true",
      "canEdit": "true",
      "canUpdateStatus": "true",
      "canComplete": "true",
      "canAssign": "true",
      "canDelete": "true",
      "position": "1",
      "userDetails": {
        "zuid": "2060758",
        "id": "2060758",
        "name": "Patricia Boyle",
        "canFollow": "true"
      },
      "assigneesCount": "2",
      "assignees": [
        {
          "zuid": "2060557",
          "id": "2060557",
          "email": "eduardov@zillum.com",
          "name": "Eduardo Vargas"
        },
        {
          "zuid": "28764963",
          "id": "28764963",
          "email": "p.boyle@zillum.com",
          "name": "Patricia B"
        }
      ],
      "canAddRepetition": "true",
      "timeTakenToComplete": "297 Days"
    },
    "comment": {
      "id": "929000000865082",
      "time": "1522070007356",
      "formatedTime": "02:13 AM",
      "isApproved": "true",
      "commentType": "COMPLETED_TASK",
      "canLike": "false",
      "canComment": "false",
      "bot": {
        "items": {
          "*^$@_USERNAME_*^$@_2060758": {
            "zuid": "2060758",
            "id": "2060758",
            "name": "Patricia Boyle",
            "canFollow": "true"
          }
        },
        "img": "https://css.zohostatic.com/pulse/v_200/images/BotDefault.png",
        "msg": "*^$@_USERNAME_*^$@_2060758 has completed the task."
      },
      "userDetails": {
        "zuid": "-1",
        "id": "-1",
        "name": "Connect Bot"
      },
      "content": [
        {
          "text": "Patricia Boyle has completed the task."
        }
      ]
    },
    "result": "success"
  }
}