API Docs
Update URL PUT
This endpoint allows you to update a single URL by Slashtag or ID.
https://t2mio.com/api/v1/urls/:SLASHTAG
https://t2mio.com/api/v1/urls/:ID
Note: If you have multiple short URLs with the same slashtag on different domains, please use an ID based endpoint.
Request
Parameter | Type | Position | Constraint | Description |
---|---|---|---|---|
apikey | string |
Header |
Required |
Your 20-30 characters unique api key. |
apisecret | string |
Header |
Required |
Your 12-20 characters unique api secret. |
Content-Type | string |
Header |
Required |
Value: 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. Allowed Chars: upper/lowercase letters, digits, at-sign, dot, hyphens and underscore /[^a-z@\._\-0-9]/i .Min: 3 characters Max: 100 characters |
redirect_code | integer |
Body |
Optional |
HTTP redirect codes (301, 302, 303, 304, 307, or 308). Default: 301 |
password | string |
Body |
Optional |
Password to protect URL and default is no password. Max: 50 characters |
domain_id | integer |
Body |
Optional |
ID of branded short domain. Default: 0 (no branded domain) |
Sample request data
{ "destination":"https://t2mio.com/blog/google-url-shortener-goo-gl-shutting-down/", "slashtag":"updatedKeyword" }
Response
{ "status": 200, "message": "ok", "data": { "rows_updated": 1 } }