---
updatedAt: 2026-04-29T00:49:36.000Z
agentTools:
  projectIndex: https://synaccess.readme.io/llms.txt
---

# Update an Action

Update trigger action settings

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Cloud.Synaccess",
    "version": "1.3"
  },
  "servers": [
    {
      "url": "https://cloud.synaccess.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "authorization",
        "in": "header",
        "x-default": "Bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "tags": [
    {
      "name": "Actions",
      "description": "Action scheduling and management endpoints."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Devices",
      "tags": [
        "Device Inventory",
        "Device Live Telemetry",
        "Device Logs",
        "Configuration",
        "Firmware"
      ]
    },
    {
      "name": "Power Control",
      "tags": [
        "Outlets",
        "PDU Outlet Groups",
        "Inlets",
        "Banks",
        "Sensors"
      ]
    },
    {
      "name": "Automation",
      "tags": [
        "Events",
        "Actions"
      ]
    },
    {
      "name": "Organization",
      "tags": [
        "Groups"
      ]
    }
  ],
  "paths": {
    "/v1/devices/{enclosure_serial_number}/actions/{action_id}": {
      "put": {
        "summary": "Update an Action",
        "description": "Update trigger action settings",
        "operationId": "update-an-action",
        "parameters": [
          {
            "name": "enclosure_serial_number",
            "in": "path",
            "description": "Unique serial number for a device",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "action_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name string up to 100 characters"
                  },
                  "code": {
                    "type": "integer",
                    "description": "Action code for a type of action. See action code table",
                    "format": "int32"
                  },
                  "params": {
                    "type": "array",
                    "description": "See action code table. Array of strings. Maximum 3 parameters.",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"name\": \"Reboot Router Outlet\",\n  \"id\": 3,\n  \"enabled\": true,\n  \"code\": 12,\n  \"params\": [\n    \"4-286331153\"\n  ],\n   \"enclosureSerialNumber\": 10000036,\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "tags": [
          "Actions"
        ]
      }
    }
  }
}
```