Updated on 2025-03-31 GMT+08:00

Modifying a Task

Description

This interface is invoked to modify a task.

Method

POST

URI

https://Domain name/service/AICC__Case/1.0.0/openapi/task/modify (For example, the domain name is service.besclouds.com.)

Request Description

Table 1 Request header parameters

No.

Parameter

Type

Mandatory or Not

Description

1

Content-Type

String

Yes

Request body type, which is JSON

2

access-token

String

Yes

Token for a user to access a tenant space. For details, see 2.

Table 2 Request body parameters

No.

Parameter

Type

Mandatory or Not

Description

1

taskInfo

TaskInfo

No

Task information. For details about the parameters of this object, see Table 3.

Table 3 TaskInfo parameters

No.

Parameter

Type

Length (Bytes)

Mandatory or Not

Description

1

id

String

20

Yes

Task ID

2

title

String

128

No

Task title

3

description

String

20,000

No

Task description

4

type

String

-

No

Associated task type

Value range:

  • Case

5

relateId

String

20

No

Associated type ID. If the associated task type is set, this parameter must also be set.

6

contactId

String

20

No

Contact ID

7

priority

String

128

No

Priority

dataType: SingleSelect

Value range:

  • Critical
  • High
  • Medium
  • Low

8

dueDate

Datetime

-

No

Deadline, in YYYY-MM-DD HH:mm:ss format

9

attachment

String

255

No

Task attachment

10

creatorId

String

20

No

Creator ID

Response Description

  • Status code: 200

None

Example

Scenario: Modify a task.

URL: https://Domain name/service/AICC__Case/1.0.0/openapi/task/modify

  • Request header
{
 "Content-Type": "application/json",
 "access-token": "0000000000************7bm63KsRmEztTvyA="
}
  • Request body
{
    "taskInfo":{
        "id":"ccqG0000014iXvGKONQO",
        "title":"show0707",
        "creatorId": "10gg00000148QvgpaLAm"
    }
}
  • Response header
{ "connection": "keep-alive",
 "Content-Length": "16",
"Content-Type": "application/json%3Bcharset=UTF-8"}
  • Response parameters
{"resCode": "0","resMsg": "Success"}