---
title: "Update an Agent"
method: PUT
path: "/api/v2/agents/{agentID}/Status"
tags: ["Agents"]
---

# Update an Agent

`PUT /api/v2/agents/{agentID}/Status`

## Request

- Base URL: `https://secure.agco-ats.com`
- URL: `https://secure.agco-ats.com/api/v2/agents/{agentID}/Status`
- Auth: none declared

Updates the status of an Agent.The body of the PUT is the updated Agent status.  When successful,
            the response is empty.If unsuccessful, an appropriate ApiError is returned.

## Path parameters

- `agentID` integer, required

## Request body

- BuildSystemSharedDTOAgentStatus: A DTO for an IAgentStatus
  - `Online` boolean, required: Indicates if the agent is online
  - `LastStatusUpdate` string, date-time: ReadOnly. The UTC date and time of the last status update

## Response `204`

No Content

## Other responses

- `default`: API Error Response

---

[API](https://skmtc.dev/agco-ats/apis/agco-ats-api.md) - [All operations](https://skmtc.dev/agco-ats/apis/agco-ats-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agco-ats/apis/agco-ats-api/revisions/8b416443df5c?raw)
