Task API (1.0.1)

Download OpenAPI specification:Download

API system for task execution, outsourced; no need to configure crontab, our system will send you asynchronous queued requests

Add a task

Request Body schema: application/json
token
uuid

Auth Token, developers give you.

taskGroup
string

Name of tasker, developers give you.

status
boolean
Enum: true false

True if it is active

target
string

URL target to execute task

time
integer

The default milliseconds you want the task to take to execute.

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Edit a task

Request Body schema: application/json
token
uuid

Auth Token, developers give you.

taskGroup
string

Name of tasker, developers give you.

status
boolean or null
Enum: true false

True if it is active

target
string or null

URL target to execute task

time
integer or null

The default milliseconds you want the task to take to execute.

Responses

Request samples

Content type
application/json
{
  • "token": "2eVk6GQkcwMdziuqxT1obworcCf3woLCjUgB1ayB4QY0Us0YldWCvU8w4lsV2cyt",
  • "taskGroup": "taskDemo",
  • "id": "123456789",
  • "status": true,
  • "time": "123123"
}

Response samples

Content type
application/json
Example
{
  • "message": "Task edited successfully"
}

Delete a task

Request Body schema: application/json
token
uuid

Auth Token, developers give you.

taskGroup
string

Name of tasker, developers give you.

id
integer

Send the id to delete

Responses

Request samples

Content type
application/json
{
  • "token": "2eVk6GQkcwMdziuqxT1obworcCf3woLCjUgB1ayB4QY0Us0YldWCvU8w4lsV2cyt",
  • "taskGroup": "taskDemo",
  • "id": "123456789"
}

Response samples

Content type
application/json
Example
{
  • "message": "Task deleted successfully"
}

Get tasks

Request Body schema: application/json
token
uuid

Auth Token, developers give you.

taskGroup
string

Name of tasker, developers give you.

Responses

Request samples

Content type
application/json
{
  • "token": "2eVk6GQkcwMdziuqxT1obworcCf3woLCjUgB1ayB4QY0Us0YldWCvU8w4lsV2cyt",
  • "taskGroup": "taskDemo"
}

Response samples

Content type
application/json
{}