---
title: "Change agent connector"
method: PUT
path: "/v1/agents/{agentId}/connector"
tags: ["Agents"]
---

# Change agent connector

`PUT /v1/agents/{agentId}/connector`

Use this endpoint to change the connector of an agent

## Path parameters

- `agentId` string, uuid, required

## Request body

- object
  - `integrationType` 'api' | 'datahub' — Type of the integration. The valid types are `api` or `datahub`.
  - `datahubId` string, uuid — Id of the Data Hub to be used by the new agent, in GUID format. It is required for integrations of type 'datahub'. It must be set to null, empty or not present for integrations of type 'api'
  - `integrationId` string, uuid — The ID of the connector

## Response `200`

Agent connector updated successfully

- object

---

[API](https://skmtc.net/tetrascience/apis/tetra-data-lake.md) · [All operations](https://skmtc.net/tetrascience/apis/tetra-data-lake/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tetrascience/tetra-data-lake/revisions/0205e2bace53/schema)
