# Change a DM automation (/en/reference/automations/update-automation)

OpenAPI operation (components in https://api.tebar.app/v1/openapi.json):

```json
[
  {
    "operationId": "updateAutomation",
    "tags": [
      "Automations"
    ],
    "summary": "Change a DM automation",
    "description": "The account and kind stay; a new trigger is checked against the kind.\n\nRequires the write scope.",
    "parameters": [
      {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      {
        "$ref": "#/components/parameters/TebarProfile"
      }
    ],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/UpdateAutomationRequest"
          }
        }
      }
    },
    "responses": {
      "200": {
        "description": "The automation.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/DmAutomation"
            }
          }
        }
      },
      "400": {
        "$ref": "#/components/responses/BadRequest"
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "$ref": "#/components/responses/Forbidden"
      },
      "404": {
        "$ref": "#/components/responses/NotFound"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      }
    }
  }
]
```