Cloning of the task

Description

Creates a new task in the target folder and applies to it the settings of the current task.

Request code

OC_CLONETASK

Request errors

Request code Code meaning Explanation
QE_FOLDER_NOT_FOUND Folder not found The source folder was not found
QE_TARGET_FOLDER_NOT_FOUND Target folder not found Target folder was not found
QE_LIMIT_EXCEEDED Limit exceeded The maximum number of tasks in the target folder has been exceeded

Request body

"Action":<OC_CLONETASK>,
"Data":{
 "Token":<MyToken>,
 "Folder ID":<MyFolderID>,
 "Target ID":<MyTargetFolderID>,
 "Task ID":<MyTaskID>,
 "Name":<MyTaskName>
}

Response body

"Status":"Success",
"Data":{
 "Task ID":<NewTaskID>
}

Additionally

  • If cloning was successfully done, the server returns an identifier of added task.
  • The newly created task is marked as a frozen.