Skip to main content
PUT
Step 1b — Set the DataClass for a session
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

PUT /source-creator/sessions//data-class Description: Sets the target DataClass (digital_royalty, physical_sales, …) on the session, run after analyze and before ai-map-columns. Gates downstream mapping validation against the correct canonical f_* fact-table schema. Authorization:
  • Requires royaltyAccess subscription feature
Method: PUT

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

Session ID

Body

application/json
dataClass
enum<string>
required

Canonical multi-class revenue taxonomy value. Single source of truth: src/interface/DataClass.ts. Determines which canonical f_* fact-table schema the confirmed column mappings are validated against.

Available options:
digital_royalty,
physical_sales,
tour_revenue,
merch_sale,
brand_milestone,
stream_trends,
artificial_streams,
social_trends

Response

Data class set

status
string
Example:

"success"

message
string
Example:

"Data class set"

data
object