---
title: "Enable or Disable Automation"
method: PUT
path: "/automations/status/{automationId}"
tags: ["Automations"]
---

# Enable or Disable Automation

`PUT /automations/status/{automationId}`

## Request

- Base URL: `https://api.speakai.co/v1`
- URL: `https://api.speakai.co/v1/automations/status/{automationId}`
- Auth: API key in header `x-speakai-key` and API key in header `x-access-token`

# Update Automation Status

This endpoint allows you to update the status of a specific automation to enable or disable by providing the automation ID in the URL path.

## Request Body

The request body should contain the following parameters:

- `status`: (string) The new status for the automation.

- `message`: (string) An optional message related to the status update.


## Response

The response will have a status code of 200 and a JSON body with the following structure:

- `status`: (string) Indicates the status of the request.

- `message`: (string) Provides additional information about the status.


## Sample Response

``` json
{
 "status": "",
 "message": ""
}

 ```

## Path parameters

- `automationId` string, required

## Response `200`

Success

---

[API](https://skmtc.dev/speakai/apis/speak-ai-api.md) · [All operations](https://skmtc.dev/speakai/apis/speak-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/speakai/apis/speak-ai-api/revisions/52d777e6d46e?raw)
