Create mapping schema
Create a new mapping schema defining source lookup labels and the result labels to populate. Requires a Pro plan.
Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 1,000 requests/minute; 50 requests/second per account |
| Permissions | Mappings Manage (on-call) |
Usage
- Schema names must be unique within an account.
source_labels(1–3 labels) are used as lookup keys;result_labels(1–10 labels) are the labels written on match.- Label names must match
^[a-z][a-z0-9_]{0,39}$(lowercase). source_labelsandresult_labelsmust not overlap.- An account can have at most 20 mapping schemas.
- Every call is recorded in the account audit log. Don’t put secrets in request fields.
Authorizations
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
Unique schema name (max 39 chars).
39Lookup key label names (1–3). Must not overlap with result_labels.
3Output label names (1–10). Must not overlap with source_labels.
10Optional description (max 500 chars).
500Owning team ID. 0 means no team.
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.