> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tangerine365.com/llms.txt.
> For full documentation content, see https://docs.tangerine365.com/llms-full.txt.

# App Settings

POST https://localhost:8090//api/app/settings
Content-Type: application/x-www-form-urlencoded

The `POST /api/webpages/index` endpoint is used to retrieve webpages from the system.

### Request

- Method: POST
    
- Base URL: {{baseUrl}}
    
- Path: /api/webpages/index
    
- Headers:
    
    - Content-Type: application/x-www-form-urlencoded
        

### Request Body

The request body for this endpoint is of type x-www-form-urlencoded.

- `auth` (string): Authentication token.
    

### Response

The response will be in JSON format and will include the following fields:

- `success` (string): Indicates the success status of the request.
    
- `message` (string): Provides additional information about the request.
    
- `data` (array): Contains an array of objects, each representing a webpage.
    
    - `id` (string): The unique identifier for the webpage.
        
    - `title` (string): The title of the webpage.
        
    - `description` (string): The description of the webpage and its content.

Reference: https://docs.tangerine365.com/tangerine-365-enterprise/app-settings

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Tangerine365 Enterprise
  version: 1.0.0
paths:
  //api/app/settings:
    post:
      operationId: app-settings
      summary: App Settings
      description: >-
        The `POST /api/webpages/index` endpoint is used to retrieve webpages
        from the system.


        ### Request


        - Method: POST
            
        - Base URL: {{baseUrl}}
            
        - Path: /api/webpages/index
            
        - Headers:
            
            - Content-Type: application/x-www-form-urlencoded
                

        ### Request Body


        The request body for this endpoint is of type x-www-form-urlencoded.


        - `auth` (string): Authentication token.
            

        ### Response


        The response will be in JSON format and will include the following
        fields:


        - `success` (string): Indicates the success status of the request.
            
        - `message` (string): Provides additional information about the request.
            
        - `data` (array): Contains an array of objects, each representing a
        webpage.
            
            - `id` (string): The unique identifier for the webpage.
                
            - `title` (string): The title of the webpage.
                
            - `description` (string): The description of the webpage and its content.
      tags:
        - ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/App Settings_Response_200'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                auth:
                  type: string
              required:
                - auth
servers:
  - url: https://localhost:8090
components:
  schemas:
    ApiAppSettingsPostResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        app_name:
          type: string
        enable_banner:
          type: string
        app_description:
          type: string
        maintenance_mode:
          type: string
        app_support_email:
          type: string
          format: email
      required:
        - app_name
        - enable_banner
        - app_description
        - maintenance_mode
        - app_support_email
      title: ApiAppSettingsPostResponsesContentApplicationJsonSchemaData
    App Settings_Response_200:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/ApiAppSettingsPostResponsesContentApplicationJsonSchemaData
        message:
          type: string
        success:
          type: boolean
      required:
        - data
        - message
        - success
      title: App Settings_Response_200

```

## SDK Code Examples

```python App Settings_example
import requests

url = "https://localhost:8090//api/app/settings"

payload = ""
headers = {"Content-Type": "application/x-www-form-urlencoded"}

response = requests.post(url, data=payload, headers=headers)

print(response.json())
```

```javascript App Settings_example
const url = 'https://localhost:8090//api/app/settings';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams('')
};

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

```go App Settings_example
package main

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

func main() {

	url := "https://localhost:8090//api/app/settings"

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

	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

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

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

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

}
```

```ruby App Settings_example
require 'uri'
require 'net/http'

url = URI("https://localhost:8090//api/app/settings")

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

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'

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

```java App Settings_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://localhost:8090//api/app/settings")
  .header("Content-Type", "application/x-www-form-urlencoded")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://localhost:8090//api/app/settings', [
  'form_params' => null,
  'headers' => [
    'Content-Type' => 'application/x-www-form-urlencoded',
  ],
]);

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

```csharp App Settings_example
using RestSharp;

var client = new RestClient("https://localhost:8090//api/app/settings");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
IRestResponse response = client.Execute(request);
```

```swift App Settings_example
import Foundation

let headers = ["Content-Type": "application/x-www-form-urlencoded"]

let request = NSMutableURLRequest(url: NSURL(string: "https://localhost:8090//api/app/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```