---
title: "Publish an edited remote task"
method: POST
path: "/api/{org_id}/tasks/{entity_id}/test_connection"
tags: ["RemoteTasks"]
---

# Publish an edited remote task

`POST /api/{org_id}/tasks/{entity_id}/test_connection`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/tasks/{entity_id}/test_connection`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/tasks/:entity_id/test_connection/post.ts> (a function with typed inputs; its response is checked against the schema)

Description-only edits update their source version without calling the endpoint. Structural edits call the endpoint using the draft's own contract; a failure records why and publishes nothing, while a success publishes the next immutable version.

## Path parameters

- `org_id` string, required
- `entity_id` string, required

## Request body

- object: The sample a test connection sends. Hand-entered, because the wizard's Test connection stays at one row.
  - `input` unknown
  - `metadata` unknown

## Response `200`

- object
  - `error` string, nullable
  - `published` boolean, required: False when the test connection failed. No version was published and the draft is unchanged apart from the recorded reason.
  - `report` VerificationReportBody: The raw exchange a test connection produced, shown to the operator whether it passed or failed.
    - `latencyMs` integer, required
    - `parsedOutput` unknown
    - `rawRequest` string, required
    - `rawResponse` string, required
    - `statusCode` integer, nullable
  - `task` RemoteTaskResponseBody, required
    - `auth` RemoteTaskAuthResponse, required: Auth on the way out: the shape, and whether a Secret is configured.
      - `headerName` string, nullable
      - `type` string, required
      - `usesSecret` boolean, required
    - `contentType` string, required
    - `createdAt` integer, required
    - `customHeaders` RemoteTaskHeaderResponse[], required
      - `key` string, required
      - `usesSecret` boolean, required
      - `value` string, nullable
    - `description` string, nullable
    - `draftSourceVersion` integer, nullable
    - `endpoint` string, required
    - `entityId` string, required
    - `httpMethod` string, required
    - `id` string, required
    - `isActive` boolean, required
    - `isDraft` boolean, required
    - `isReferenceable` boolean, required: Whether an Experiment may pin this row.
    - `maxAttempts` integer, required
    - `maxConcurrency` integer, required
    - `name` string, required
    - `orgId` string, required
    - `referencedBy` integer, nullable: Number of live Experiments pinned to any published version of this head. Populated by the list endpoint, which can compute all heads in one batch; omitted from single-version responses.
    - `requestTemplate` string, nullable
    - `responseSchema` string, required
    - `signing` RemoteTaskSigningResponse, required: Signing on the way out. The key id is shown because the receiver needs it to select a key; the secret behind it is not.
      - `enabled` boolean, required
      - `keyId` string, nullable
      - `usesSecret` boolean, required
    - `taskRef` string, nullable: `name@version`, present only when there is a version to pin.
    - `timeoutMs` integer, required
    - `updatedAt` integer, required
    - `verificationError` string, nullable
    - `verificationStatus` string, required
    - `verifiedAt` integer, nullable
    - `version` integer, required: `0` marks the head's draft, which no Experiment can reference.
  - `versionBumped` boolean, required: Whether the publish minted a new version. A description-only edit publishes none.

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
