---
title: "Save workflow code"
method: POST
path: "/workflows/{workflowID}/code"
tags: ["Workflows"]
---

# Save workflow code

`POST /workflows/{workflowID}/code`

Persists a new revision of the workflow's code. Hash-deduplicates against the current revision (no-op if unchanged). Source is capped at 256KB.

## Path parameters

- `workflowID` string, required — workflow identifier

## Request body

- WorkflowSaveCodeRequest
  - `message` string
  - `source` string, required

## Response `200`

OK

- WorkflowSaveCodeResponse
  - `no_op` boolean, required
  - `revision` integer, required
  - `revision_id` string, required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/axilioai/apis/axilio-api-2.md) · [All operations](https://skmtc.net/axilioai/apis/axilio-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/axilioai/axilio-api-2/versions/d7ecf9466d6d/schema)
