Request
The unique code of the link to update
Your API key: b2co_your_api_key
Optional display name for the link to help with organization and
identification.
Updated link configuration object containing destination URL and platform-specific
settings.
The destination URL where users will be redirected when they click the dynamic
link.
ID of a saved iOS mobile app to use for this link. When provided, the link will use the saved app’s configuration instead of manual iOS settings.
ID of a saved Android mobile app to use for this link. When provided, the link will use the saved app’s configuration instead of manual Android settings.
Android-specific configuration for deep linking and app store fallbacks.
Android app package name (e.g., com.yourapp.android).
payload.android.store_fallback
Play Store URL to redirect Android users without the app.
payload.android.min_version
Minimum app version required to handle the deep link.
Whether to save this Android configuration as a new reusable mobile app.
Name for the saved mobile app (required if saveApp is true).
iOS-specific configuration for deep linking and App Store fallbacks.
iOS app bundle identifier (e.g., com.yourapp.ios).
payload.ios.app_store_fallback
App Store URL to redirect iOS users without the app.
App Store ID for the iOS app.
Minimum app version required to handle the deep link.
Whether to save this iOS configuration as a new reusable mobile app.
Name for the saved mobile app (required if saveApp is true).
Social media preview configuration for rich link sharing.
Title displayed in social media previews.
payload.social.description
Description displayed in social media previews.
Image URL displayed in social media previews.
UTM campaign parameters for analytics tracking.
payload.campaign.utm_source
Campaign source parameter.
payload.campaign.utm_medium
Campaign medium parameter.
payload.campaign.utm_campaign
Campaign name parameter.
payload.campaign.utm_term
Campaign term parameter (for paid search keywords).
payload.campaign.utm_content
Campaign content parameter (for A/B testing and content-targeted ads).
Fallback URL for desktop users.
Optional expiration date in ISO 8601 format. Link will become inactive after
this date.
Cannot Update Code : The link code cannot be changed after creation. This is a permanent identifier for the link.
Expired Links : You cannot update a link that has already expired. Consider creating a new link instead.
Response
Indicates if the request was successful
The updated link confirmation
Success message confirming the update
curl -X PUT "https://api.bit2connect.com/1.0/links/summer-sale" \
-H "X-API-KEY: b2co_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Summer Sale Campaign",
"payload": {
"link": "https://yourapp.com/products/summer-sale-updated",
"iosAppId": "550e8400-e29b-41d4-a716-446655440000",
"androidAppId": "550e8400-e29b-41d4-a716-446655440001",
"social": {
"title": "Summer Sale - Now 60% Off!",
"description": "Extended sale! Don' \' 't miss out!",
"image": "https://yourapp.com/images/summer-sale-v2.jpg"
},
"campaign": {
"utm_source": "api",
"utm_medium": "dynamic_link",
"utm_campaign": "summer_sale_extended_2024"
}
}
}'
Success Response
Error Response
Expired Link Error
{
"success" : true ,
"data" : {
"message" : "Link updated successfully"
}
}
Common Use Cases
Updating Destination URL
Change where users are redirected:
{
"payload" : {
"link" : "https://yourapp.com/new-destination"
}
}
Switching to Saved Mobile Apps
Replace manual configuration with saved apps:
{
"payload" : {
"link" : "https://yourapp.com/content" ,
"iosAppId" : "550e8400-e29b-41d4-a716-446655440000" ,
"androidAppId" : "550e8400-e29b-41d4-a716-446655440001"
}
}
Updating Social Preview
Update how the link appears when shared:
{
"payload" : {
"link" : "https://yourapp.com/content" ,
"social" : {
"title" : "New Promotional Title" ,
"description" : "Updated marketing message" ,
"image" : "https://yourapp.com/images/new-promo.jpg"
}
}
}
Updating Campaign Parameters
Change analytics tracking parameters:
{
"payload" : {
"link" : "https://yourapp.com/content" ,
"campaign" : {
"utm_source" : "newsletter" ,
"utm_medium" : "email" ,
"utm_campaign" : "winter_2024"
}
}
}