Skip to main content
POST
Upsert mapping data rows

Restrictions

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.