> ## Documentation Index
> Fetch the complete documentation index at: https://developers.liara.ir/llms.txt
> Use this file to discover all available pages before exploring further.

# Settings a database

> settings a database that user owns



## OpenAPI

````yaml /spec/dbaas.yaml patch /v1/databases/{id}/settings
openapi: 3.0.1
info:
  title: DBaaS
  description: |-
    Manage your databases using our API

    Parameters:
    - `teamID`: To access services in a team
  termsOfService: '#'
  contact:
    email: info@liara.ir
  version: 1.0.0
servers:
  - url: https://api.iran.liara.ir
security:
  - jwt: []
tags:
  - name: Databases
    description: Everything about your Databases
  - name: Backups
    description: Backups endpoints
  - name: Reports
    description: Reports of your app
externalDocs:
  description: Find out more about DBaaS
  url: http://liara.ir
paths:
  /v1/databases/{id}/settings:
    patch:
      tags:
        - Databases
      summary: Settings a database
      description: settings a database that user owns
      operationId: databasesSettings
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Databases-settings'
        required: true
      responses:
        '200':
          description: Successful operation
          content: {}
        '400':
          description: Bad request
          content: {}
        '401':
          description: Missing authentication
          content: {}
        '404':
          description: Database not found
          content: {}
components:
  schemas:
    Databases-settings:
      type: object
      properties:
        type:
          type: string
        options:
          type: object
          properties:
            maxConnections:
              type: number
            netBufferLength:
              type: number
            selectLimit:
              type: number
            maxAllowedPacket:
              type: number
            connectTimeout:
              type: number
            maxJoinSize:
              type: number
            clientEncoding:
              type: string
            sharedBuffers:
              type: number
  securitySchemes:
    jwt:
      type: apiKey
      description: 'Enter the token with the `Bearer: ` prefix, e.g. "Bearer abcde12345".  #'
      name: Authorization
      in: header

````