Update Link
POST
/v1/links/{id}Request
Path Params
id
string
required
Header Params
X-Auth-Id
string
required
X-Auth-Key
string
required
Body Params application/json
long_url
string
required
short
string
required
title
string
optional
Example
{
"long_url": "http://yourexamplelink.id/this-very-long-url",
"short": "1JT0",
"title": "Your Title"
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer
required
message
string
required
data
#/definitions/2362886required
Example
{
"code": 200,
"message": "link_updated",
"data": {
"_id": "6673610e22b2eaa01abe4873",
"id": 414736,
"created_at": "2024-06-19T22:51:58.036Z",
"updated_at": "2024-06-20T06:12:42.746285+07:00",
"short": "X2345",
"long_url": "https://example.com/test-link2",
"blocked": null,
"blocked_reason": null,
"blocked_at": null,
"microsite": false,
"protected": false,
"disposable": false,
"adult": false,
"archive_at": null
}
}
Last modified: 4 months ago