# Update a Topic's Metadata

> Changes the details of an existing Topic, such as its name or the client it is bound to. It needs topic_id and changes only the fields you supply: name…

POST /api/v1/skills/topic.update/invoke

Changes the details of an existing Topic, such as its name or the client it is bound to. It needs topic_id and changes only the fields you supply: name, type, status, theme colour, client, description or icon. Setting status to active restores an archived topic, but a deleted topic cannot be updated. It returns the topic's permakey, name, type and status.

Body parameters

topic_id string Required

Topic permakey (preferred) or UUID

name string

New topic name (rename)

type string

client | matter | process_period | advisory | compliance | internal

status string

active | archived. Set 'active' to unarchive; soft-deleted topics are terminal and answer not-found.

theme_color string

Hex like #DAFBE1

client_id string

UUID of the client to bind

description string

Free-text topic description

icon string

Topic icon

Returns

Skill executed successfully

skill string Required

Example topic_update

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.topic_id string · default

The topic's permakey (the public id).

output.permakey string · default

The 7-char public topic id — THE id to show users and reuse in later topic_* calls (UUIDs are internal).

output.name string · default

output.type string · default

output.status string · default

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Previous ← Post a Message](https://heyarchie.com/en-gb/developers/api-reference/topics/post-a-message/)

```
curl https://uk.heyarchie.com/api/v1/skills/topic.update/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "topic_id": "string",
       "name": null,
       "type": null,
       "status": null,
       "theme_color": null,
       "client_id": null,
       "description": null,
       "icon": null
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "topic.update",
    topic_id="string",
    name=None,
    type=None,
    status=None,
    theme_color=None,
    client_id=None,
    description=None,
    icon=None,
)
print(result)
```

```
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("topic.update", {
  "topic_id": "string",
  "name": null,
  "type": null,
  "status": null,
  "theme_color": null,
  "client_id": null,
  "description": null,
  "icon": null
});
console.log(result);
```

Response

```
{
  "skill": "topic_update",
  "output": {
    "name": "Northwind Trading Ltd - FY2026 year-end",
    "permakey": "K7M2QX9",
    "status": "active",
    "topic_id": "K7M2QX9",
    "type": "client"
  },
  "correlation_id": "<string>"
}
```

```
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
