# Update a Workstream's Metadata

> Renames a workstream or changes its description, so an accountant can keep a shared process tidy without rebuilding it. It needs the workstream_id plus…

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

Renames a workstream or changes its description, so an accountant can keep a shared process tidy without rebuilding it. It needs the workstream_id plus whichever of the name, description, steps or schemas you want to change, and only the fields you send are updated. It returns the workstream's identifier, permakey, name and status. Cycles already running are not affected.

Body parameters

workstream_id string Required

Workstream UUID, slug, or 7-char permakey

name string

New name (rename / retitle)

description string

New description

steps array of objects

Updated step definitions, in the form the WorkStream builder saves (the steps workstream_describe returns): id, name, type, depends_on, expected_outputs, and for a tool_call step tool_name and tool_params. A step the builder would refuse is refused, naming it (steps[i]).

input_schema array of objects

Updated input schema declarations (array of InputDef: name, type, required, description).

output_schema array of objects

Declared outputs

Returns

Skill executed successfully

skill string Required

Example workstream_update

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.workstream_id string · default

The workstream's permakey (the public id).

output.permakey string · default

7-char public workstream id.

output.name string · default

output.status string · default

output.error string

missing_workspace | not_found on failure, else null

output.published boolean

false on a managed save: saved, not yet published; else null

output.unpublished_saves integer

Commits on the working branch main does not hold; null when not read or unmanaged

output.latest_version integer

The WorkStream's own version (a save never changes it); null if unmanaged

output.head string

The head after a managed save; else null

output.save_message string

'Saved. Not published: N change(s) since version V.'; else null

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 ← Get the Current Status of a Workstream Run](https://heyarchie.com/en-gb/developers/api-reference/workstreams/get-the-current-status-of-a-workstream-run/)

```
curl https://uk.heyarchie.com/api/v1/skills/workstream.update/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "workstream_id": "string",
       "name": null,
       "description": null,
       "steps": null,
       "input_schema": null,
       "output_schema": null
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "workstream.update",
    workstream_id="string",
    name=None,
    description=None,
    steps=None,
    input_schema=None,
    output_schema=None,
)
print(result)
```

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

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("workstream.update", {
  "workstream_id": "string",
  "name": null,
  "description": null,
  "steps": null,
  "input_schema": null,
  "output_schema": null
});
console.log(result);
```

Response

```
{
  "skill": "workstream_update",
  "output": {
    "name": "Month-end close (AU)",
    "permakey": "k7m2p9x",
    "status": "active",
    "workstream_id": "k7m2p9x"
  },
  "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.
