---
title: "Update agent status (JWT)"
method: POST
path: "/servers/{serverID}/status"
tags: ["Agent"]
---

# Update agent status (JWT)

`POST /servers/{serverID}/status`

Receives status updates from agents including drift detection and errors

## Path parameters

- `serverID` string, required

## Request body

- PkgServerAgentStatusPayload
  - `agent_version` string
  - `commit_hash` string
  - `drift_details` GithubComPullbasePullbaseServerPkgModelsDriftDetails
    - `files` GithubComPullbasePullbaseServerPkgModelsDriftItem[]
      - `actual` string
      - `expected` string
      - `message` string
      - `name` string
      - `type` string
    - `packages` GithubComPullbasePullbaseServerPkgModelsDriftItem[]
      - `actual` string
      - `expected` string
      - `message` string
      - `name` string
      - `type` string
    - `services` GithubComPullbasePullbaseServerPkgModelsDriftItem[]
      - `actual` string
      - `expected` string
      - `message` string
      - `name` string
      - `type` string
    - `summary` string
  - `error_message` string
  - `is_drifted` boolean
  - `status` string

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/pullbase/apis/untitled-api.md) · [All operations](https://skmtc.dev/pullbase/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pullbase/untitled-api/revisions/edf8355bf78c/schema)
