> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/skill/_setname.md).

# \_setName

Sets the name of a chosen Skill.

### Parameters

#### id

The ID of the Skill you wish to rename.

#### name

The new name which the chosen Skill will go by.

### Example

```
FM_api('Skill_setName',[
		'id'=>'12345',
		'name'=>'New Name'
	]
);
```

### Results

#### On Success

```
{'ok':1}
```

#### On Failure

If the "id" parameter is not set or has an integer value less than 1:

```
{'error':'missing or invalid parameter: id'}
```

If the "name" parameter is not set or empty:

```
{'error':'missing or invalid parameter: name'}
```

If the "name" parameter is over 100 characters long:

```
{'error':'parameter too long: name'}
```
