<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ACharacterSettingsRenameUiProfile</id>
	<title>API:CharacterSettingsRenameUiProfile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ACharacterSettingsRenameUiProfile"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:CharacterSettingsRenameUiProfile&amp;action=history"/>
	<updated>2026-10-17T07:29:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:CharacterSettingsRenameUiProfile&amp;diff=30225&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:CharacterSettingsRenameUiProfile&amp;diff=30225&amp;oldid=prev"/>
		<updated>2026-10-16T19:41:13Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=CharacterSettings}}&lt;br /&gt;
Renames one of the current character&amp;#039;s UI profiles.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CharacterSettingsRenameUiProfile(oldName, newName)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;oldName : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Current name of the profile.&lt;br /&gt;
;newName : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – New name.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The profile must exist for the current character and be owned by it. Otherwise an error below is logged and nothing is renamed.&lt;br /&gt;
* If another profile already uses &amp;lt;code&amp;gt;newName&amp;lt;/code&amp;gt;, an error is logged, but the call goes on and renames the profile anyway. Check the name first, as the stock UI does.&lt;br /&gt;
* The profile&amp;#039;s folder is renamed and the profile list is updated.&lt;br /&gt;
* If the profile is the active one, the client updates its active profile path and name and saves the character settings.&lt;br /&gt;
* The client then fires &amp;lt;code&amp;gt;SystemData.Events.CHARACTER_SETTINGS_UPDATED&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Both arguments must be wide strings. The function needs at least two arguments and only reads the last two.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
Logged; the call does not raise a Lua error:&lt;br /&gt;
* &amp;lt;code&amp;gt;ERROR Renaming UI Profile &amp;#039;%s&amp;#039;. Profile does not exist for this character.&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;ERROR Renaming UI Profile &amp;#039;%s&amp;#039; to &amp;#039;%s&amp;#039;. New Profile name is already in use.&amp;lt;/code&amp;gt; (the call continues)&lt;br /&gt;
* &amp;lt;code&amp;gt;ERROR Removing UI Profile &amp;#039;%s&amp;#039;. You may not remove a profile owned by another character.&amp;lt;/code&amp;gt; (the rename uses the message of [[API:CharacterSettingsRemoveUiProfile|CharacterSettingsRemoveUiProfile]])&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_uiprofileswindow/source/renameuiprofilewindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CharacterSettingsRenameUiProfile( m_selectedProfileName, profileName )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:CharacterSettingsCreateUiProfile|CharacterSettingsCreateUiProfile]]&lt;br /&gt;
* [[API:CharacterSettingsRemoveUiProfile|CharacterSettingsRemoveUiProfile]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>