Skip to main content
PUT
/
api
/
orgs
/
{id}
/
kpis
/
{kpiId}
/
http-syncs
Validate KPI HTTP sync config
curl --request PUT \
  --url https://atollhq.com/api/orgs/{id}/kpis/{kpiId}/http-syncs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "request_config": {
    "method": "GET",
    "url": "<string>",
    "headers": {
      "Accept": "application/json"
    },
    "jsonBody": null
  },
  "extraction_config": {
    "contentType": "json",
    "pointer": "<string>",
    "numeric": {
      "mode": "number"
    }
  },
  "freshness_config": {}
}
'
{
  "ok": true,
  "config_hash": "<string>",
  "required_secrets": [
    {}
  ],
  "canonical_host": "<string>",
  "error": "<string>",
  "code": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

id identifier

kpiId
string
required

kpiId identifier

Body

application/json

Proposed KPI HTTP sync config. Does not store, run, publish, or write snapshots.

GET/HTTPS/JSON-only sync draft. Destination host must already be exactly allowlisted. Do not include secret values, query strings, request bodies, redirects, or raw third-party payloads.

name
string
required
schedule
enum<string>
required
Available options:
hourly,
daily
request_config
object
required
extraction_config
object
required
freshness_config
object

Response

Successful response

ok
boolean
config_hash
string
required_secrets
object[]
canonical_host
string
error
string
code
string