---
title: "Create an alias"
method: POST
path: "/workflows/definitions/{id}/aliases"
tags: ["Workflow aliases"]
---

# Create an alias

`POST /workflows/definitions/{id}/aliases`

## Request

- Base URL: `https://api.nullplatform.com`
- URL: `https://api.nullplatform.com/workflows/definitions/{id}/aliases`
- Auth: HTTP bearer

Creates an alias pointing at an existing revision. `latest` is reserved. Creating an alias does not activate its triggers; call the activate endpoint for that.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, required
  - `revision` integer, required

## Response `201`

The alias was created.

- Alias
  - `workflowId` string, required
  - `name` string, required
  - `revision` integer, required
  - `active` boolean, required: Whether the alias's triggers are activated.
  - `updatedAt` string, date-time, required
  - `updatedBy` string
  - `metadata` object
  - `triggerStates` object: Map of trigger id to its activation state.

## Other responses

- `4XX`: Client error. The body says what went wrong: an error `type`, a human-readable `detail`, and, on validation failures, one entry per offending field.
- `5XX`: Unexpected server error.

## Changes

- **2026-09-17** `43b3c1ecdfd8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nullplatform/apis/nullplatform-api/changes/workflows/definitions/:id/aliases/post.md)

---

[API](https://skmtc.dev/nullplatform/apis/nullplatform-api.md) - [All operations](https://skmtc.dev/nullplatform/apis/nullplatform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nullplatform/apis/nullplatform-api/revisions/d3f66bc633d4?raw)
