API reference › WorkStreams
Update a Workstream's Metadata
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_idstringRequired
Workstream UUID, slug, or 7-char permakey
namestring
New name (rename / retitle)
descriptionstring
New description
stepsarray 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_schemaarray of objects
Updated input schema declarations (array of InputDef: name, type, required, description).
output_schemaarray of objects
Declared outputs
Returns
Skill executed successfully
skillstringRequired
Example workstream_update
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.workstream_idstring · default
The workstream's permakey (the public id).
output.permakeystring · default
7-char public workstream id.
output.namestring · default
output.statusstring · default
output.errorstring
missing_workspace | not_found on failure, else null
output.publishedboolean
false on a managed save: saved, not yet published; else null
output.unpublished_savesinteger
Commits on the working branch main does not hold; null when not read or unmanaged
output.latest_versioninteger
The WorkStream's own version (a save never changes it); null if unmanaged
output.headstring
The head after a managed save; else null
output.save_messagestring
'Saved. Not published: N change(s) since version V.'; else null
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
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>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"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.