post
https://api.sharpsports.io/v1/books//affiliateLink
update or remove the affiliateLink for a book.
Authorization
🔐 Private API Key
Update or clear the affiliateLink for a given 📖 Book.
Setting the affiliateLink at the book level propagates to every region-level affiliateLink for this book. Any region that does not have its own affiliateLink override will inherit this book-level value. To set a region-specific override, use the 🔗 BookRegion AffiliateLink endpoint.
Affiliate Links can also be managed in the SharpSports dashboard under BetSync > Settings > Book Settings.
Update affiliateLink
Issue a POST to /books/{id}/affiliateLink with the new link in the request body:
{
"affiliateLink": "https://example.com/affiliate?ref=abc123"
}The response echoes the saved value.
Delete affiliateLink
Issue a DELETE to /books/{id}/affiliateLink to clear the link. The response will return {"affiliateLink": null}.