# Issue REST API PUT "/rest/config/folders/\*id\*" - error : folder has empty ID

**URL:** https://forum.syncthing.net/t/issue-rest-api-put-rest-config-folders-id-error-folder-has-empty-id/17089
**Category:** Support
**Created:** [July 15, 2021, 5:44pm UTC](https://forum.syncthing.net/t/issue-rest-api-put-rest-config-folders-id-error-folder-has-empty-id/17089 "2021-07-15T17:44:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![selev](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/bcef8e/32.png) [@selev](https://forum.syncthing.net/u/selev)
#### Post date: [July 15, 2021, 5:44pm UTC](https://forum.syncthing.net/t/issue-rest-api-put-rest-config-folders-id-error-folder-has-empty-id/17089/1 "2021-07-15T17:44:57Z")

</div>

i send the following REST API: `curl -X PUT -d '{ "label": "TEST" }' -H "X-API-Key: MyAPIKey" http://localhost:8384/rest/config/folders/default`

and get the following error message: `folder has empty ID`

My Folder configuration is:

```
curl -X GET -H "X-API-Key: MyAPIKey" http://localhost:8384/rest/config/folders/default
{
  "id": "default",
  "label": "MODS",
.....
}

```

what am I doing wrong?

---

<div class="post-metadata">

### Author: ![selev](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/bcef8e/32.png) [@selev](https://forum.syncthing.net/u/selev)
#### Post date: [July 15, 2021, 6:22pm UTC](https://forum.syncthing.net/t/issue-rest-api-put-rest-config-folders-id-error-folder-has-empty-id/17089/2 "2021-07-15T18:22:40Z")

</div>

problem solved: `curl -k -X PUT -d '{` **“id”: "default"** `, "label": "TEST" }' -H "X-API-Key: MyAPYKey" http://localhost:8384/rest/config/folders/default`

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [August 14, 2021, 6:23pm UTC](https://forum.syncthing.net/t/issue-rest-api-put-rest-config-folders-id-error-folder-has-empty-id/17089/3 "2021-08-14T18:23:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
