PATCH
/v1/sources/{source_id}Update a source
Updates source naming, domain, status, or schema enforcement settings.
Authentication
Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
source_id | string | Yes | Source identifier. |
Request body schema
{
"name": "string",
"status": "active | paused",
"schema_mode": "off | warn | enforce"
}Response schema · 200
{
"id": "src_123",
"status": "active",
"updated_at": "2026-05-05T10:20:00Z"
}Response example
{
"id": "src_123",
"status": "active",
"updated_at": "2026-05-05T10:20:00Z"
}Code examples
curl https://api.tracklayer.com/v1/sources/src_123 \
-X PATCH \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{"event_name":"purchase","user_id":"u_123","properties":{"order_id":"100045","value":129}}'Try it out
Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.