Skip to main content
POST
/
enrichment
/
mapping
/
data
/
upsert
Upsert mapping data rows
curl --request POST \
  --url 'https://api.flashcat.cloud/enrichment/mapping/data/upsert?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "schema_id": "665f1a2b3c4d5e6f7a8b9c01",
  "docs": [
    {
      "host": "server01",
      "owner": "alice",
      "team": "sre",
      "service": "api"
    },
    {
      "host": "server02",
      "owner": "bob",
      "team": "platform",
      "service": "gateway"
    }
  ]
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {
    "keys": [
      "server01",
      "server02"
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.flashcat.cloud/llms.txt

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

Restrictions

AspectValue
Rate limits1,000 requests/minute; 50 requests/second per account
PermissionsMappings Manage (on-call)

Usage

  • Each doc must contain values for all labels defined in source_labels and result_labels.
  • Values for unknown labels are silently dropped.
  • Each value must be at most 2048 characters.
  • Upsert is keyed on the combination of source label values — existing rows with the same source key are updated.
  • A schema can hold at most 10,000 rows by default.
  • The operation is locked per schema; concurrent upserts to the same schema may fail with ErrRequestTooFrequently.

Authorizations

app_key
string
query
required

App key issued from the Flashduty console under Account → APP Keys. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json
schema_id
string
required

Mapping schema ID (MongoDB ObjectID hex).

docs
object[]
required

Rows to insert or update. Each row must include all source and result labels.

Maximum array length: 1000

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object
required

Endpoint-specific payload. See each operation's 200 response schema.