Short-Bitunix
HomeLink
Multiple Menus
  • Link1
  • Link2
HomeLink
Multiple Menus
  • Link1
  • Link2
  1. URL Collections
  • URL Collections
    • POST Url
      POST
    • GET Url
      GET
    • GET Url ID
      GET
    • UPDATE Url by ID
      PUT
    • DELETE Url by ID
      DELETE
    • GET QrCode by ID
      GET
  • Sources Bank
    • POST Sources
      POST
    • GET Sources
      GET
    • GET Sources by ID
      GET
    • PUT Sources by ID
      PUT
    • DELETE Sources by ID Copy
      DELETE
  • Medium Bank
    • POST Medium
      POST
    • GET Medium
      GET
    • GET Medium by ID
      GET
    • PUT Medium by ID
      PUT
    • DELETE Medium by ID Copy
      DELETE
  • Partner Code Bank
    • POST VipCodes
      POST
    • GET VipCodes
      GET
    • GET VipCodes by ID
      GET
    • PUT VipCodes by ID
      PUT
    • DELETE VipCodes by ID Copy
      DELETE
  • Tag Bank
    • POST Tags
      POST
    • GET Tags
      GET
    • GET Tags by ID
      GET
    • PUT Tags by ID
      PUT
    • DELETE Tags by ID
      DELETE
  • Analytics
    • GET All clicks URL
    • GET spesific shrtlink analytics
    • GET clicks from ID
    • GET All clicks URL
    • GET All clicks countries
    • GET All clicks cities
    • GET All clicks regions
    • GET All clicks continents
    • GET All clicks devices
    • GET All clicks browsers
    • GET All clicks source
    • GET All clicks medium
    • GET All clicks campaign
    • GET All clicks term
    • GET All clicks content
  • Auth
    • POST Register
    • POST Login
    • PUT Change Name User Auth
    • POST Logout
  • Untitled Endpoint
    GET
  1. URL Collections

UPDATE Url by ID

Develop Env
http://localhost:8000/api/
Develop Env
http://localhost:8000/api/
PUT
api/urls/11

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
object {0}
Example
{
    "destination_url": "https://baharihari.com",
    "campaign": "updated_campaign",
    "tags": [
        "updated_tag"
    ],
    "short_link": "short.bitunixads.com/test1293ab"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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"
}'

Responses

🟢200Success
application/json
Body
status
integer 
required
data
object 
required
id
integer 
required
destination_url
string 
required
source_id
null 
required
medium_id
null 
required
short_link
string 
required
qr_code
string 
required
source
string 
required
medium
string 
required
campaign
string 
required
term
string 
required
content
string 
required
referral
string 
required
clicks
integer 
required
created_at
string 
required
updated_at
string 
required
mixed_url
string 
required
tags
array [object {5}] 
required
message
string 
required
Example
{
    "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"
}
Modified at 2025-03-04 09:29:11
Previous
GET Url ID
Next
DELETE Url by ID
Built with