# \_set

Set a Setting's value.

### Parameters

#### name

The Setting you want to set.

**Default valid values:**

* 'appointment-statuses',
* 'customer-results-long',
* 'restrict-appointment-selection',
* 'disable-appointment-time-in-progress-update',
* 'timeline-template'.

**If Mantis integration is enabled:**

* 'issuetracker-mantis\_wsdl',
* 'issuetracker-mantis\_username',
* 'issuetracker-mantis\_password'.

**If Xero integration is enabled:**

* 'xero\_consumer\_key',
* 'xero\_consumer\_password',
* 'xero\_api\_endpoint\_url',
* 'xero\_rsa\_public\_key'.

**If Quickbooks integration is enabled:**

* 'quickbooks\_consumer\_key',
* 'quickbooks\_consume\_password',
* 'quickbooks\_app\_token'.

**If SMS integration is enabled:**

* 'sms-appointment\_create',
* 'sms-appointment\_create\_text',
* 'sms-appointment\_hours\_before',
* 'sms-appointment\_hours\_before\_num',
* 'sms-appointment\_hours\_before\_text',
* 'sms-appointment\_on\_route',
* 'sms-appointment\_on\_route\_text'.

#### value

The value that you want to set the Setting to.

### Example

```
FM_api('Setting_set', ['name' => 'appointment-statuses', 'value' => 'This would be the value.']);
```

### Result

#### On Success

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

#### On Failure

```
{'error':'refused'}
```
