Skip to content

Create a new task.

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
assignmentobject(Assignment)

Assignment details

taskTypestring

Task Type

taskStatusstring

Status of the task

titlestring

Task Title

descriptionstring

Task description

assetIdstring

Id of the entity for which task created.

assetTypestring

Type of the entity for which task created.

dueDateinteger, (int64)

Task Due Date

customPropertiesobject

Custom Fields on the task

attachmentany(Attachment)
subscribersArray of objects(Subscriber)

Subscribers for the task

queueIdsArray of strings

Queue ids of the task, if any

parentTaskIdstring

Id of parent task

curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/task \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "assignment": {
      "assigneeId": "string",
      "assigneeType": "string",
      "assignedById": 0,
      "assignmentTime": 0
    },
    "taskType": "string",
    "taskStatus": "string",
    "title": "string",
    "description": "string",
    "assetId": "string",
    "assetType": "string",
    "dueDate": 0,
    "customProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "attachment": {
      "type": "IMAGE",
      "assetId": "string",
      "attachmentOptions": [
        {
          "channelType": "FACEBOOK",
          "accountId": 0,
          "embeddable": true,
          "category": "string",
          "noStory": true,
          "secret": true,
          "blockSocialActions": true,
          "expirationEnabled": true,
          "expirationDate": 0,
          "deletePost": true
        }
      ],
      "url": "string",
      "urlHash": "string",
      "title": "string",
      "description": "string",
      "previewUrl": "string",
      "hashedPreviewUrl": "string",
      "mimeType": "string",
      "alternateText": "string",
      "height": 0.1,
      "width": 0.1,
      "encryptedUrl": "string",
      "sizeInBytes": 0
    },
    "subscribers": [
      {
        "type": "string",
        "ids": [
          "string"
        ]
      }
    ],
    "queueIds": [
      "string"
    ],
    "parentTaskId": "string"
  }'

Responses

Success

Bodyapplication/json
idstring

Task id

assignmentobject(Assignment)

Assignment details

taskTypestring

Task Type

taskStatusstring

Status of the task

titlestring

Task Title

descriptionstring

Task description

assetIdstring

Id of the entity for which task created.

assetTypestring

Type of the entity for which task created.

parentTaskIdstring

Id of the parent task

completionDateinteger, (int64)

Task Completion Date

dueDateinteger, (int64)

Task Due Date

customPropertiesobject

Custom Fields on the task

inactiveboolean

True if the task is inactive

nextTaskIdstring

Task ID of the next task

attachmentany(Attachment)
subscribersArray of objects(Subscriber)

Subscribers for the task

queueDetailsArray of objects(Queue)

Queue details on the task, if any

createdTimeinteger, (int64)

Created time of the task

modifiedTimeinteger, (int64)

Last modified time of the task

workFlowStateobject(WorkflowState)

Workfkow State

externalCasesArray of objects(ExternalCase)

External Cases

Response
{ "id": "string", "assignment": { "assigneeId": "string", "assigneeType": "string", "assignedById": 0, "assignmentTime": 0 }, "taskType": "string", "taskStatus": "string", "title": "string", "description": "string", "assetId": "string", "assetType": "string", "parentTaskId": "string", "completionDate": 0, "dueDate": 0, "customProperties": { "property1": [ … ], "property2": [ … ] }, "inactive": true, "nextTaskId": "string", "attachment": { "type": "IMAGE", "assetId": "string", "attachmentOptions": [ … ], "url": "string", "urlHash": "string", "title": "string", "description": "string", "previewUrl": "string", "hashedPreviewUrl": "string", "mimeType": "string", "alternateText": "string", "height": 0.1, "width": 0.1, "encryptedUrl": "string", "sizeInBytes": 0 }, "subscribers": [ { … } ], "queueDetails": [ { … } ], "createdTime": 0, "modifiedTime": 0, "workFlowState": { "executionTokenId": "string", "processVariables": { … } }, "externalCases": [ { … } ] }