Authorization: Bearer ********************
{
"destination_url": "https://baharihari.com",
"campaign": "updated_campaign",
"tags": [
"updated_tag"
],
"short_link": "short.bitunixads.com/test1293ab"
}
curl --location --request PUT 'http://localhost:8000/api/api/urls/11' \
--header 'Content-Type: application/json' \
--data-raw '{
"destination_url": "https://baharihari.com",
"campaign": "updated_campaign",
"tags": [
"updated_tag"
],
"short_link": "short.bitunixads.com/test1293ab"
}'
{
"data": {
"id": 1,
"destination_url": "https://baharihari.com",
"short_link": "short.bitunixads.com/test1293ab",
"qr_code": null,
"source": "facebook",
"medium": "social",
"campaign": "updated_campaign",
"term": "marketing",
"content": "banner_ad",
"referral": "ref123",
"clicks": 0,
"created_at": "2025-03-04T08:13:40.000000Z",
"updated_at": "2025-03-04T09:23:18.000000Z",
"tags": [
{
"id": 4,
"name": "updated_tag",
"created_at": "2025-03-04T09:23:18.000000Z",
"updated_at": "2025-03-04T09:23:18.000000Z",
"pivot": {
"url_id": 1,
"tag_id": 4
}
}
]
},
"message": "URL updated successfully"
}