# Can GET provider but PUT returns 404

**URL:** <https://community.traefik.io/t/can-get-provider-but-put-returns-404/3502>\
**Category:** Traefik v1\
**Tags:** rest-api\
**Created:** [December 18, 2019, 3:26pm UTC](https://community.traefik.io/t/can-get-provider-but-put-returns-404/3502 "2019-12-18T15:26:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheWorldIsFlat](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@TheWorldIsFlat](https://community.traefik.io/u/TheWorldIsFlat)\
**Post date:** [December 18, 2019, 3:26pm UTC](https://community.traefik.io/t/can-get-provider-but-put-returns-404/3502/1 "2019-12-18T15:26:48Z")

</div>

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

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

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

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [December 18, 2019, 7:53pm UTC](https://community.traefik.io/t/can-get-provider-but-put-returns-404/3502/2 "2019-12-18T19:53:41Z")

</div>

Hello,

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

- [https://docs.traefik.io/v1.7/configuration/backends/rest/](https://docs.traefik.io/v1.7/configuration/backends/rest/)
- [https://docs.traefik.io/v1.7/configuration/api/#api](https://docs.traefik.io/v1.7/configuration/api/#api)

---

<div class="post-metadata">

**Author:** ![TheWorldIsFlat](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@TheWorldIsFlat](https://community.traefik.io/u/TheWorldIsFlat)\
**Post date:** [December 18, 2019, 8:16pm UTC](https://community.traefik.io/t/can-get-provider-but-put-returns-404/3502/3 "2019-12-18T20:16:36Z")

</div>

Idez,

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

[https://docs.traefik.io/v1.7/configuration/api/](https://docs.traefik.io/v1.7/configuration/api/)

 ![traefik](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/d/d060e12a30eb47764551b0b2e68574f94a4bbea6.png)

Is this just an error in the documentation then?

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [December 18, 2019, 9:48pm UTC](https://community.traefik.io/t/can-get-provider-but-put-returns-404/3502/4 "2019-12-18T21:48:28Z")

</div>

You have to take a look to the `(1)`

 ![Screenshot from 2019-12-18 22-47-47](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/5/5944fc222d444e82101fbe8917769bbb0383d018.png)
