Can GET provider but PUT returns 404

This command correctly GETs the config file and returns a 200 status code:
curl - http://ip-address:8080/api/providers/kubernetes

These commands respond with 404:
curl -XPUT -d @file.toml "http://ip-address:8080/api/providers/kubernetes"
curl -XPUT -d @kubernetes.toml "http://ip-address:8080/api/providers/"

Any ideas why this route would return a 404 on PUT but we can GET the same route?

Hello,

It's only possible to PUT on the endpoint /api/providers/rest

Idez,

Thanks - that seems to conflict with the documentation on this page:

https://docs.traefik.io/v1.7/configuration/api/

Is this just an error in the documentation then?

You have to take a look to the (1)