{
"long_url": "http://yourexamplelink.id/this-very-long-url",
"short": "1JT0",
"title": "Your Title"
}
curl --location --request POST 'https://api.s.id/v1/links/' \
--header 'X-Auth-Id;' \
--header 'X-Auth-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"long_url": "http://yourexamplelink.id/this-very-long-url",
"short": "1JT0",
"title": "Your Title"
}'
{
"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
}
}