---
title: "Update agent"
url: https://hexelstudio.com/docs/api/titan/registry/update-agent
---

# Update agent

**PATCH** `/titan/registry/agents/{id}`

## Path parameters

- `id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

## Body parameters

- `description: optional string`

- `display_name: optional string`

- `labels: optional map[string]`

## Returns

`200` Success (`RegistryAgent`)

- `agent_id: string`

- `created_at: string`

- `created_by: string`

- `description: string`

- `display_name: string`

- `labels: map[string]`

- `organization_id: string`

- `state: string`

- `updated_at: string`

- `valid_tokens_not_before: string`

## Errors

- `400` Invalid request
- `401` Unauthenticated
- `403` Forbidden
- `404` Not found
- `409` Conflict
- `500` Internal error

## Example

```bash
curl --request PATCH \
  --url 'https://api.hexelstudio.com/v1/titan/registry/agents/{id}' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "string",
  "display_name": "string",
  "labels": {
    "key": "string"
  }
}'
```

### Response (200)

```json
{
  "agent_id": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "created_by": "string",
  "description": "string",
  "display_name": "string",
  "labels": {
    "key": "string"
  },
  "organization_id": "string",
  "state": "string",
  "updated_at": "2026-01-01T00:00:00Z",
  "valid_tokens_not_before": "2026-01-01T00:00:00Z"
}
```

### Response (400)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (401)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (403)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (404)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (409)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (500)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
