---
title: "Agent Status Setting Update"
method: PUT
path: "/v1/data-acquisition/agent/status"
tags: ["Data Acquisition"]
---

# Agent Status Setting Update

`PUT /v1/data-acquisition/agent/status`

## Request

- Base URL: `https://api.tetrascience.com`
- URL: `https://api.tetrascience.com/v1/data-acquisition/agent/status`
- Auth: API key in header `ts-auth-token` and API key in header `x-org-slug`

This endpoint allows TetraScience Agent to send status setting update to platform. Tetrascience agents have start/stop button. When start button is clicked, agent should hit endpoint with `statusSetting=STARTED`. Opposite, when stop button is clicked, agent should hit endpoint with `statusSetting=STOPPED`.

 It requires a user-defined agent set up in the TetraScience Web UI

## Request body

- object
  - `agentId` string, required: This is the sourceId for a user-defined integration. Need to copy from the TDP web UI, where the user-defined integration is created. For existing TetraScience Agent who can connect to TetraScience Cloud directly, provide the agentId to this field.
  - `agentVersion` string, required: The Agent version, such as "v1.0.0".
  - `agent` 'TetraScience.Agent.file-log' | 'TetraScience.Agent.empower' | 'TetraScience.Agent.unicorn' | 'TetraScience.Agent.labx' | 'TetraScience.Agent.chromeleon' | 'TetraScience.Agent.user-defined': Type of agent, in the form `TetraScience.Agent.file-log`, `TetraScience.Agent.empower`, etc. If provided, object in data lake will have the metadata value `agent` in the form of `agent agentVersion` (for example, `TetraScience.Agent.file-log v4.3.0')
  - `statusSetting` 'STARTED' | 'STOPPED': Status setting of the agent. It can be `STARTED` or `STOPPED`

## Response `200`

200

- object
  - `agentName` string

## Other responses

- `404`: 404

---

[API](https://skmtc.dev/tetrascience/apis/agents.md) - [All operations](https://skmtc.dev/tetrascience/apis/agents/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/agents/revisions/ae8c491f4b2e?raw)
