Step 5 — Save as a draft RoyaltySource
Source Creator
Step 5 — Save as a draft RoyaltySource
POST /source-creator/save
POST
Step 5 — Save as a draft RoyaltySource
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
POST /source-creator/save Description: Persists the session as a newRoyaltySource (created private,
public: false, type: 'user_created') plus a TenantDataSource
link and SourceColumnMapping rows. Derives a typed BigQuery schema
from the sample data, populates multi-class taxonomy fields
(dataClass, grain, economicRole, encoding, periodParser)
from what the session captured, and — for “copy & modify” sessions
— versions the table name and copies fee/period config from the
parent source. Triggers a v_sales_data rebuild after the
transaction commits. Requires session status generating or
testing (i.e. queries generated; the test step is optional).
Rate limited via heavyOperationLimiter (creates DB records +
triggers a BigQuery rebuild).
Authorization:
- Required role:
adminor higher
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json