> 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/importcustomersemail/_setname.md).

# \_setName

Sets the name of an instruction for how Customer Emails will be imported.

### Parameters

#### id

The ID of the instruction.

#### val

The new Name to be set to the instruction.

### Example

```
FM_api('ImportCustomersEmail_setName',[
    'id'=>'167',
    'val'=>'Test Name'
    ]
);
```

### Results

#### On Success

```
{"ok":1}
```

If the "val" parameter already matches the current instruction name:

```
{"ok":"1","warning":"no change required"}
```

#### On Failure

If the "id" parameter is not set:

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

If the "val" parameter is not set:

```
{"error":"missing or invalid parameter: val"}
```

If the "id" parameter does not match an existing instruction:

```
{"error":"import_filters is not existing."}
```
