# \[IGN-14405\]Ignition 8.3 API Theme rename file not working

**URL:** <https://forum.inductiveautomation.com/t/ign-14405-ignition-8-3-api-theme-rename-file-not-working/110994>\
**Category:** Ignition\
**Tags:** perspective, scripting, ignition83\
**Created:** [September 26, 2025, 12:02am UTC](https://forum.inductiveautomation.com/t/ign-14405-ignition-8-3-api-theme-rename-file-not-working/110994 "2025-09-26T00:02:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Cheron](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Steven\_Cheron](https://forum.inductiveautomation.com/u/Steven_Cheron)\
**Post date:** [September 26, 2025, 12:02am UTC](https://forum.inductiveautomation.com/t/ign-14405-ignition-8-3-api-theme-rename-file-not-working/110994/1 "2025-09-26T00:02:56Z")

</div>

Hi !

I’m trying to create a project to manage custom theme via the API. Everything works well except one thing.

I can’t rename a data file inside a theme. To be simpler I created python script functions to handle the API.

Below my function to call the ‘Update theme data file’ request

```python
def updateThemeDataFile(name, filename, signature, content, rename = None):
	""" Send a request to create/update a data file in a custom theme
	
	Parameters
	----------
	name: str
		Custom theme name
	
	filename: str
		Custom theme filename
	
	signature: str
		Custom theme last signature
	
	content: str
		Content for the file create or updated
	
	rename: str, default = None
		If True, rename the data file with the new name
	
	Returns
	-------
	HttpResponse
		The request's response
	"""
	httpClient = system.net.httpClient()
	data = content
	
	params = {
		"signature": signature
	}
	
	if rename is not None:
		params["rename"] = str(rename)
	
	headers = {
		"X-Ignition-API-Token": API.Common.APIKey
	}
	
	response = httpClient.put(
		url = API.Common.baseUrl + "/data/api/v1/resources/datafile/com.inductiveautomation.perspective/themes/" + name + "/" + filename,
		params = params,
		data = data,
		headers = headers
	)
	
	return response

```

Here the result returned by the http request in the designer script console. But the file name is not changed.

```python
response = API.Themes.updateThemeDataFile(name = "custom", filename = "file.css", signature = "d9ba3650e5b55d326cb019bbeba00b70d140a2dc424f928be6c240cce2b3d96e", content = "content", rename = "file2.css")
print(response.getText())

```

```json
{
  "success": true,
  "changes": [
    {
      "name": "custom",
      "type": "com.inductiveautomation.perspective/themes",
      "collection": "core",
      "newSignature": "b3ad1966ad9ce46768e08f6943e380d15f6e832e605bf92d9a870e37a7d5a8c9"
    }
  ],
  "problem": null
}

```

I think this is a bug, but maybe I did something wrong.

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 26, 2025, 3:52pm UTC](https://forum.inductiveautomation.com/t/ign-14405-ignition-8-3-api-theme-rename-file-not-working/110994/2 "2025-09-26T15:52:14Z")

</div>

It's a bug - the rename parameter is documented, but the internal handler isn't actually doing anything with it.
