curl --request PUT \
--url https://api.example.com/enrichments/{name} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"name": "02_namespace_to_org",
"description": "EKS pods the pod label does not resolve -> namespace's responsible organization",
"keyField": "cos_namespace",
"priority": 2,
"conditions": "input.cos_cluster_name != null && input.cos_namespace != \"\"",
"targetColumns": [
{
"name": "owner_org",
"mode": "merge"
},
{
"name": "owner_org_code",
"mode": "merge"
}
],
"entries": [
{
"key": "team-a",
"then": {
"owner_org": "Platform",
"owner_org_code": "PLAT"
}
}
]
}
EOF
{
"change": "added"
}{
"errors": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "ADMIN_REQUIRED"
}{
"errors": [
"<string>"
]
}Enrichments
Store an enrichment document as a draft
Stores the document as a draft. Publish makes it live. A body equal to the live document drops its draft and returns unchanged.
The document name must match the URL. A body larger than 10 MB is 413. Org admin only.
PUT
/
enrichments
/
{name}
curl --request PUT \
--url https://api.example.com/enrichments/{name} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"name": "02_namespace_to_org",
"description": "EKS pods the pod label does not resolve -> namespace's responsible organization",
"keyField": "cos_namespace",
"priority": 2,
"conditions": "input.cos_cluster_name != null && input.cos_namespace != \"\"",
"targetColumns": [
{
"name": "owner_org",
"mode": "merge"
},
{
"name": "owner_org_code",
"mode": "merge"
}
],
"entries": [
{
"key": "team-a",
"then": {
"owner_org": "Platform",
"owner_org_code": "PLAT"
}
}
]
}
EOF
{
"change": "added"
}{
"errors": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "ADMIN_REQUIRED"
}{
"errors": [
"<string>"
]
}Authorizations
Send Authorization: Bearer <credential> using either a Clerk session JWT or a Clerk API key (ak_*). API keys may identify a user (user_*) or organization (org_*) principal and are generated in the Clerk Dashboard under API keys.
Path Parameters
Document name. Must match name in the body.
Body
application/json
Must match the name in the URL.
Billing column whose value selects an entry.
Required range:
x >= 0Show child attributes
Show child attributes
Show child attributes
Show child attributes
CEL expression. Every field is input. plus one SQL identifier. Omitted when unset.
Response
Draft stored
Available options:
added, changed, removed, unchanged Last modified on October 12, 2026
Was this page helpful?
