Update Tenant Source by RoyaltySource ID
Sources
Update Tenant Source by RoyaltySource ID
Updates a tenant source association by the RoyaltySource ID.
PUT
Update Tenant Source by RoyaltySource ID
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
Required Permissions
sources:update
Important: ID Parameter
Theid parameter represents the RoyaltySource ID, not the TenantSource association ID.
This endpoint updates the tenant’s source association WHERE RoyaltySourceId = id AND TenantId = authenticated_tenant.
Business Rules
- Can only update own tenant’s associations
- Updates only
settingsandreplacementsfields
Side Effects
- Triggers regeneration of tenant’s sales data query cache
- Updates tenant-specific BigQuery query configurations
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
RoyaltySource ID (not TenantSource ID)
Example:
"src-1"
Body
application/json
Response
Tenant source updated successfully
Association between a tenant and a royalty source. Note: The composite key is (TenantId, RoyaltySourceId).
Tenant ID (automatically set from authenticated user)
Example:
1
Royalty source ID
Example:
"src-1"
Whether this source association is active for the tenant
Example:
true
Tenant-specific settings for this source
Example:
{}Tenant-specific field replacements/mappings
Example:
{}