Updating a script using the REST API

Instructions and examples in this document use an IP address that is reserved for documentation, 192.0.2.5, as an example of the IP address for the switch. To access your switch, you must use the IP address or hostname of that switch.

Prerequisites
  • You must be logged in to the switch REST API with a user name that has administrator rights.

  • The switch REST API access mode must be read-write.

Procedure
  1. Use the DELETE method to delete the script.

    Other methods, such as PUT or PATCH, are not supported for scripts.

    When you delete a script, all associated agents are deleted automatically.

  2. Use the POST method to upload the modified script.