---
title: "Report task result and get next tasks"
method: POST
path: "/inlong/manager/openapi/agent/reportAndGetTask"
tags: ["Open-Agent-API"]
---

# Report task result and get next tasks

`POST /inlong/manager/openapi/agent/reportAndGetTask`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- TaskRequest
  - `agentIp` string
  - `clusterName` string
  - `commandInfo` CommandEntity[]
    - `acked` boolean
    - `commandResult` integer
    - `deliveryTime` string
    - `id` string
    - `taskId` integer
    - `version` integer
  - `pullJobType` integer
  - `uuid` string

## Response `200`

OK

- ResponseTaskResult
  - `data` TaskResult
    - `cmdConfigs` CmdConfig[]
      - `dataTime` string
      - `id` integer
      - `op` integer
      - `taskId` integer
    - `dataConfigs` DataConfig[]
      - `dataReportType` integer
      - `deliveryTime` string
      - `extParams` string
      - `inlongGroupId` string
      - `inlongStreamId` string
      - `ip` string
      - `mqClusters` MQClusterInfo[]
        - `mqType` string
        - `params` object
        - `token` string
        - `url` string
        - `valid` boolean
      - `op` string
      - `snapshot` string
      - `syncPartitionKey` string
      - `syncSend` integer
      - `taskId` integer
      - `taskName` string
      - `taskType` integer
      - `topicInfo` DataProxyTopicInfo
        - `inlongGroupId` string
        - `m` string
        - `topic` string
        - `valid` boolean
      - `uuid` string
      - `valid` boolean
      - `version` integer
  - `errMsg` string
  - `success` boolean

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api.md) - [All operations](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/revisions/41c687f48683?raw)
