> ## Client identification
>
> Requests to this API should include a `Client-Platform` header alongside
> `Authorization`, identifying the application, tool, or model making the
> request. This is used for integration support and analytics.
>
> Use your model or tool name, for example `claude-code` or `chatgpt`.
>
> Example:
>
> ```bash
> curl https://api.salaryboxapp.com/... \
>   -H "Authorization: Api-Key <api-key>" \
>   -H "Client-Platform: claude-code"
> ```

# Update Company Settings

PUT https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles
Content-Type: application/json

Changes company settings, as the SalaryBox app's Settings screen does. Send only the settings you want to change; anything left out stays as it is. Shared rules: see [Writing data](/conventions#writing-data).

- The body is closed: an unknown field is refused with `400` `"Unknown field."` Counts toward your write budget.
- At least one setting is required: otherwise `400` `"Send at least one field to change."`
- `block_fake_gps_attendance`, `device_verification`, `ai_face_recognition`, `auto_live_track`, `include_week_offs`, `include_holidays`, `auto_calculate_tds`, `round_off_total_salary` and `custom_permissions` are `true` or `false`.
- `ai_face_recognition`: turning it on also turns on selfie attendance for every staff member, and matches faces only for staff whose face is enrolled. Faces are enrolled in the SalaryBox Android app; staff not yet enrolled punch with a selfie and no match until they are. Turning it off turns face matching off for everyone.
- `salary_calculation_days` is `calendar_month`, `30_day_month` or `26_day_month`. See Fetch Company Settings for what each means.
- `include_week_offs` and `include_holidays` can be `false` only when `salary_calculation_days` is `calendar_month` (already, or in the same request); otherwise `400`. Switching to `30_day_month` or `26_day_month` sets both back to `true`, as in the app.
- Changing `include_week_offs` or `include_holidays` needs Payroll on your plan: otherwise `403` `"Payroll is not included in your plan. Contact us."` Sending one at its current value is always accepted.
- A setting sent at its current value is ignored. Only the settings that change are saved and trigger their effects: `salary_calculation_days`, `include_week_offs` and `include_holidays` change how payroll is worked out for all staff, and changing `device_verification` or `ai_face_recognition` applies to every staff member. If nothing changes, the current settings are returned with `200`.
- A setting your plan does not include is refused with `403` and nothing is saved.
- `custom_permissions` can't be turned off while staff have the Custom role: `400`, and nothing is saved. Move those staff to another role first.


Reference: https://docs.salarybox.in/api-reference/company/feature-toggles-update

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key   `) — Format: "Api-Key \{api-key}"

## Request

### Body (application/json)

This endpoint expects a CompanySettingsUpdateRequest.

- `block_fake_gps_attendance` (boolean, optional) — Block Fake GPS Attendance: punches from a phone using a fake GPS app are refused.
- `device_verification` (boolean, optional) — Device Verification: staff can punch only from an approved device. A new device needs approval (see Approve or Reject Device Request).
- `ai_face_recognition` (boolean, optional) — AI Face Recognition: a staff member's punch photo is matched against their enrolled face. Turning it on also turns on selfie attendance for every staff member, and face matching applies only to staff whose face is enrolled (enrolment is done in the SalaryBox Android app). Needs AI Face Recognition on your plan.
- `auto_live_track` (boolean, optional) — Auto Live Track: staff's live location is tracked automatically during working hours.
- `salary_calculation_days` (enum, optional) — How many days a month's salary is spread over, which sets the per-day salary used for absences, fines and overtime. `calendar_month`: the days in that month (January 31, February 28). `30_day_month`: always 30. `26_day_month`: always 26.
  - Allowed values: `calendar_month`, `30_day_month`, `26_day_month`
- `include_week_offs` (boolean, optional) — Include Weekoffs: week offs count as paid days of the calendar month. Off, they are taken out of the month's days, so a 31-day month with 4 week offs counts as 27 days. Can be `false` only with `salary_calculation_days` `calendar_month`.
- `include_holidays` (boolean, optional) — Include Holidays: holidays count as paid days of the calendar month. Off, they are taken out of the month's days, so a 31-day month with 1 holiday counts as 30 days. Can be `false` only with `salary_calculation_days` `calendar_month`.
- `auto_calculate_tds` (boolean, optional) — Auto-Calculate TDS: payroll works out and deducts TDS for staff.
- `round_off_total_salary` (boolean, optional) — Round Off Total Salary: each staff member's total salary is rounded to the nearest rupee. Needs Payroll on your plan.
- `custom_permissions` (boolean, optional) — Enable Custom Role: staff can be given the Custom role, with permissions set person by person.

## Response

### 200

The settings were updated. `data` has every setting after the change.

- `message` (string, required)
- `status` (boolean, required)
- `data` (CompanySettingsResponseData, required)

## Errors

### 400 Bad Request Error

Validation failed, or Custom Permissions is still in use. Nothing was saved.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 403 Forbidden Error

The requester is not an Admin, your plan does not include one of the settings, or your company has no active subscription.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

## Types

### CompanySettingsResponseData

- `block_fake_gps_attendance` (boolean, required) — Block Fake GPS Attendance: punches from a phone using a fake GPS app are refused.
- `device_verification` (boolean, required) — Device Verification: staff can punch only from an approved device. A new device needs approval (see Approve or Reject Device Request).
- `ai_face_recognition` (boolean, required) — AI Face Recognition: a staff member's punch photo is matched against their enrolled face. Turning it on also turns on selfie attendance for every staff member, and face matching applies only to staff whose face is enrolled (enrolment is done in the SalaryBox Android app). Needs AI Face Recognition on your plan.
- `auto_live_track` (boolean, required) — Auto Live Track: staff's live location is tracked automatically during working hours.
- `salary_calculation_days` (enum, required) — How many days a month's salary is spread over, which sets the per-day salary used for absences, fines and overtime. `calendar_month`: the days in that month (January 31, February 28). `30_day_month`: always 30. `26_day_month`: always 26.
  - Allowed values: `calendar_month`, `30_day_month`, `26_day_month`
- `include_week_offs` (boolean, required) — Include Weekoffs: week offs count as paid days of the calendar month. Off, they are taken out of the month's days, so a 31-day month with 4 week offs counts as 27 days. Can be `false` only with `salary_calculation_days` `calendar_month`.
- `include_holidays` (boolean, required) — Include Holidays: holidays count as paid days of the calendar month. Off, they are taken out of the month's days, so a 31-day month with 1 holiday counts as 30 days. Can be `false` only with `salary_calculation_days` `calendar_month`.
- `auto_calculate_tds` (boolean, required) — Auto-Calculate TDS: payroll works out and deducts TDS for staff.
- `round_off_total_salary` (boolean, required) — Round Off Total Salary: each staff member's total salary is rounded to the nearest rupee. Needs Payroll on your plan.
- `custom_permissions` (boolean, required) — Enable Custom Role: staff can be given the Custom role, with permissions set person by person.

## Examples

### Example

**Response**

```json
{
  "message": "Company settings updated successfully",
  "status": true,
  "data": {
    "block_fake_gps_attendance": true,
    "device_verification": false,
    "ai_face_recognition": false,
    "auto_live_track": false,
    "salary_calculation_days": "calendar_month",
    "include_week_offs": true,
    "include_holidays": true,
    "auto_calculate_tds": false,
    "round_off_total_salary": false,
    "custom_permissions": false
  }
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles"

headers = {"Authorization": "Api-Key  <apiKey>"}

response = requests.put(url, headers=headers)

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles';
const options = {method: 'PUT', headers: {Authorization: 'Api-Key  <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles"

	req, _ := http.NewRequest("PUT", url, nil)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Example
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'

response = http.request(request)
puts response.read_body
```

```java Example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")
  .header("Authorization", "Api-Key  <apiKey>")
  .asString();
```

```php Example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles', [
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = ["Authorization": "Api-Key  <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Block fake GPS attendance and turn on Device Verification

**Request**

```json
{
  "block_fake_gps_attendance": true,
  "device_verification": true
}
```

**Response**

```json
{
  "message": "Company settings updated successfully",
  "status": true,
  "data": {
    "block_fake_gps_attendance": true,
    "device_verification": false,
    "ai_face_recognition": false,
    "auto_live_track": false,
    "salary_calculation_days": "calendar_month",
    "include_week_offs": true,
    "include_holidays": true,
    "auto_calculate_tds": false,
    "round_off_total_salary": false,
    "custom_permissions": false
  }
}
```

**SDK Code**

```python Block fake GPS attendance and turn on Device Verification
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles"

payload = {
    "block_fake_gps_attendance": True,
    "device_verification": True
}
headers = {
    "Authorization": "Api-Key  <apiKey>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript Block fake GPS attendance and turn on Device Verification
const url = 'https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"block_fake_gps_attendance":true,"device_verification":true}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Block fake GPS attendance and turn on Device Verification
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles"

	payload := strings.NewReader("{\n  \"block_fake_gps_attendance\": true,\n  \"device_verification\": true\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Block fake GPS attendance and turn on Device Verification
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"block_fake_gps_attendance\": true,\n  \"device_verification\": true\n}"

response = http.request(request)
puts response.read_body
```

```java Block fake GPS attendance and turn on Device Verification
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"block_fake_gps_attendance\": true,\n  \"device_verification\": true\n}")
  .asString();
```

```php Block fake GPS attendance and turn on Device Verification
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles', [
  'body' => '{
  "block_fake_gps_attendance": true,
  "device_verification": true
}',
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Block fake GPS attendance and turn on Device Verification
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"block_fake_gps_attendance\": true,\n  \"device_verification\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Block fake GPS attendance and turn on Device Verification
import Foundation

let headers = [
  "Authorization": "Api-Key  <apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "block_fake_gps_attendance": true,
  "device_verification": true
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Calendar month without week offs

**Request**

```json
{
  "salary_calculation_days": "calendar_month",
  "include_week_offs": false
}
```

**Response**

```json
{
  "message": "Company settings updated successfully",
  "status": true,
  "data": {
    "block_fake_gps_attendance": true,
    "device_verification": false,
    "ai_face_recognition": false,
    "auto_live_track": false,
    "salary_calculation_days": "calendar_month",
    "include_week_offs": true,
    "include_holidays": true,
    "auto_calculate_tds": false,
    "round_off_total_salary": false,
    "custom_permissions": false
  }
}
```

**SDK Code**

```python Calendar month without week offs
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles"

payload = {
    "salary_calculation_days": "calendar_month",
    "include_week_offs": False
}
headers = {
    "Authorization": "Api-Key  <apiKey>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript Calendar month without week offs
const url = 'https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"salary_calculation_days":"calendar_month","include_week_offs":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Calendar month without week offs
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles"

	payload := strings.NewReader("{\n  \"salary_calculation_days\": \"calendar_month\",\n  \"include_week_offs\": false\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Calendar month without week offs
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"salary_calculation_days\": \"calendar_month\",\n  \"include_week_offs\": false\n}"

response = http.request(request)
puts response.read_body
```

```java Calendar month without week offs
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"salary_calculation_days\": \"calendar_month\",\n  \"include_week_offs\": false\n}")
  .asString();
```

```php Calendar month without week offs
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles', [
  'body' => '{
  "salary_calculation_days": "calendar_month",
  "include_week_offs": false
}',
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Calendar month without week offs
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"salary_calculation_days\": \"calendar_month\",\n  \"include_week_offs\": false\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Calendar month without week offs
import Foundation

let headers = [
  "Authorization": "Api-Key  <apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "salary_calculation_days": "calendar_month",
  "include_week_offs": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Use a 26 Day Month

**Request**

```json
{
  "salary_calculation_days": "26_day_month"
}
```

**Response**

```json
{
  "message": "Company settings updated successfully",
  "status": true,
  "data": {
    "block_fake_gps_attendance": true,
    "device_verification": false,
    "ai_face_recognition": false,
    "auto_live_track": false,
    "salary_calculation_days": "calendar_month",
    "include_week_offs": true,
    "include_holidays": true,
    "auto_calculate_tds": false,
    "round_off_total_salary": false,
    "custom_permissions": false
  }
}
```

**SDK Code**

```python Use a 26 Day Month
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles"

payload = { "salary_calculation_days": "26_day_month" }
headers = {
    "Authorization": "Api-Key  <apiKey>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript Use a 26 Day Month
const url = 'https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"salary_calculation_days":"26_day_month"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Use a 26 Day Month
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles"

	payload := strings.NewReader("{\n  \"salary_calculation_days\": \"26_day_month\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Use a 26 Day Month
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"salary_calculation_days\": \"26_day_month\"\n}"

response = http.request(request)
puts response.read_body
```

```java Use a 26 Day Month
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"salary_calculation_days\": \"26_day_month\"\n}")
  .asString();
```

```php Use a 26 Day Month
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles', [
  'body' => '{
  "salary_calculation_days": "26_day_month"
}',
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Use a 26 Day Month
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"salary_calculation_days\": \"26_day_month\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Use a 26 Day Month
import Foundation

let headers = [
  "Authorization": "Api-Key  <apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["salary_calculation_days": "26_day_month"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/company/feature-toggles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```