Skip to content

Enable or Disable a Task Template

Enable or disable a task template by its code.

  • Name: Enable or disable a task template by code
  • Description: Enables or disables the task template identified by its code.
  • Method: POST
  • Path: /remoteApi/switchTaskModelStatus
  • Login required: No
  • Permission required: Yes

Notice: Only available in v1.3.3 and later.

Notes:

  1. Disabling a task template deletes all of its tasks that have not started.
  2. After enabling the template, you must issue the task again for it to take effect.

ParameterTypeRequiredExampleDescription
taskCodeStringYes2108818424886538240Task-template code
isEnableIntegerYes0Enabled status: 0 disabled, 1 enabled

Example:

{
"taskCode": "2108818424886538240",
"isEnable": 0
}
FieldTypeExampleDescription
codeInteger200Status code
successBooleantrueWhether the request succeeded
msgStringsuccessResponse message

Example:

{
"success": true,
"code": 200,
"msg": "Operation succeeded",
"data": null
}
CodeDescription
400Invalid parameters
401Unauthorized
403Access denied
404Resource not found
500Internal server error