curl --request POST \
--url https://api.royalti.io/sources/{id}/activate \
--header 'Authorization: Bearer <token>'{
"message": "Source activated successfully"
}Activates a tenant source association by the RoyaltySource ID.
curl --request POST \
--url https://api.royalti.io/sources/{id}/activate \
--header 'Authorization: Bearer <token>'{
"message": "Source activated successfully"
}sources:updateid parameter represents the RoyaltySource ID, not the TenantSource association ID.
isActive=true on the tenant source associationconst response = await fetch('https://api.royalti.io/sources/example-id/activate', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);