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

# Deactivate an alias

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

## Request

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

Marks the alias inactive and tears down its running triggers (best effort).

## Path parameters

- `id` string, required
- `alias` string, required

## Response `200`

The deactivation outcome.

- object
  - `alias` 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.
  - `deactivatedTriggers` string[]
  - `deactivateError` string: Present when trigger teardown failed.

## 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/:alias/deactivate/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)
