Skip to main content
POST
/
v0
/
config
cURL
curl --request POST \
  --url https://{hostname}.gable.ai/v0/config \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "config_type": "<string>",
  "project_root": "<string>",
  "version": "<string>",
  "config_value": {},
  "created_at": "2023-11-07T05:31:56Z",
  "language": "<string>",
  "repo": "<string>",
  "namespace": "<string>"
}
'
{
  "message": "<string>",
  "configIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Config

config_type
string
required

Type of configuration

project_root
string
required

Project root directory (optional)

version
string
required

Version of the configuration

config_value
object
required

Configuration value as JSON

created_at
string<date-time>
required

Date time at which the config was created

language
string | null

Programming language associated with the config (optional)

repo
string | null

Repository associated with the config (optional)

namespace
string

Namespace (qa/sandbox/prod) of config (optional, default to qa)

Response

200 - application/json

Config

message
string
required
configIds
string<uuid>[]
required

List of config IDs that were updated, if no configs were updated this will be an empty list