Skip to main content
POST
/
settings
/
tls
Update TLS configuration
curl --request POST \
  --url https://your_a2_service/settings/tls \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'domain=<string>' \
  --form 'files=<string>' \
  --form mode=http \
  --form files.items='@example-file'
{
  "access_token": {
    "access_token": "<string>",
    "token_type": "Bearer"
  },
  "currency": "<string>",
  "external_channel_url": "<string>",
  "language": "<string>",
  "tls_domain": "<string>",
  "tls_enable": true,
  "yield_optimization": {
    "ceiling_cpm": 123,
    "floor_cpm": 123,
    "yield_roas_balance": 0.5
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.aiderx.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

multipart/form-data
domain
string
required

TLS domain name.

files
file[]
required

When mode is set to HTTPS, you must provide two files: the first file should be the SSL certificate and the second file should be the private key.

mode
enum<string>
required

TLS Mode: http, https

Available options:
http,
https

Response

Successful Response

Schema for Setting

access_token
BearerToken · object
required

Access token info

currency
string
required

Currency code for the system. It is used for the budget management.

Examples:

"usd"

"krw"

external_channel_url
string | null
required

External channel URL which will be used on budget management.

language
string
required

Language code for the system.

Examples:

"en"

"ko"

tls_domain
string | null
required

TLS domain name.

tls_enable
boolean
required

Whether TLS is enabled.

yield_optimization
YieldOptimization · object
required

Yield optimization settings

created_at
string<date-time> | null

The date and time the entity was created.

updated_at
string<date-time> | null

The date and time the entity was last updated.