Skip to main content

Add an task item

POST 

http://127.0.0.1:8080/task

Add a new task item.

Request

Body

required

The task item to add.

    body

    object

    required

    JSON representation of the task item.

    type stringrequired

    Possible values: [dns, shutdown]

    The type of task action to perform.

    data objectrequired

    The action-specific data.

Responses

The task item was added successfully.

Schema

    id uint64

    Unique identifier of the task item.

curl -L 'http://127.0.0.1:8080/task' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"body": {
"type": "dns",
"data": {}
}
}'
Request Collapse all
Base URL
http://127.0.0.1:8080
Body required
{
  "body": {
    "type": "dns",
    "data": {}
  }
}
ResponseClear

Click the Send API Request button above and see the response here!