Middleware gets purged after API reload

Hi Rob,

The recommended way to add your Middleware settings is via a PUT request made to the relevant API definition. In order to do this, you will need to:

  1. Make a GET request to the API definition itself (documentation on how to do this can be found here if you’re unsure)
  2. Copy and paste the response body into the payload of the PUT request that you want to send
  3. Change the custom_middleware object in your current PUT request to contain your Middleware settings
  4. Send the PUT request to the API definition

As for the link to the Tyk Pro documentation, when the file was written, I believe it was assumed that only Pro users would use the Dashboard in this way and so it is actually specific to the Tyk Dashboard. The instructions in that file should still work if you’re using the Dashboard with a single Tyk node. If you’re still unable to use said instructions however, then I would suggest you change the Middleware via an API request as stated earlier.

Kind regards,
Jess @ Tyk