API Docs

Update URL

Update URL by sending PUT data in json format to REST API endpoint: /api/v1/urls/:ID

Request

Parameter Type Position # Description
apikey string Header Required Enter your 20-characters unique api key.
apisecret string Header Required Enter your 12-characters unique api secter.
Content-Type string Header Required application/json
destination string Body Optional The destination URL that you want to transform into short URL.
slashtag string Body Optional The keyword for your branded short URL. Max: 100 chracters
redirectCode string Body Optional HTTP redirect codes (301, 302, 303, 304, 307, or 308). Default is 301
password string Body Optional Password to protect URL and default is no password. Max: 12 chracters
domain_id integer Body Optional ID of branded short domain. Default is 0

Sample post-data json


{
    "destination":"https://t2mio.com/blog/google-url-shortener-goo-gl-shutting-down/",
    "slashtag":"newtag",
}

Response

{
    "status": 200,
    "message": "ok",
    "data": {
        "rows_updated": 1
    }
}
											
{
    "status": 400,
    "message": "Bad request. <detailed-msg-will-go-here.>",
    "data": []
}