GET

https://send.now/api/file/generate_link_edit?key=1ltghrilhllgrx2b2&file_code=hloovuokqrh9&file_max_dl=10&file_expire_time=1&file_expire_unit=DAY

Parameters Description Example Format Required
key API-Key 1ltghrilhllgrx2b2 String yes
file_code File code of the temporary link (the result.file_code of Temporary link) hloovuokqrh9 String yes
file_max_dl New download limit, 0 = no limit. Not sent = unchanged 10 Number no
file_expire_time New expiry time, 0 = does not expire. Not sent = unchanged 1 Number no
file_expire_unit MINUTE, HOUR or DAY. Not sent = unchanged DAY String no

cURL example


curl --include \
'https://send.now/api/file/generate_link_edit?key=1ltghrilhllgrx2b2&file_code=hloovuokqrh9&file_max_dl=10'
          

Response


{
  "msg": "OK",
  "result": {
    "edited": 1,
    "generated": 1,
    "source_file_code": "eb58d02u8znz",
    "file_code": "hloovuokqrh9",
    "link": "https://send.now/hloovuokqrh9",
    "short_link": "https://send.now/d/1pbZB",
    "qr_link": "https://send.now/qr/4D",
    "file_max_dl": 10,
    "file_expire_time": 1,
    "file_expire_unit": "DAY",
    "fld_id": 285479
  },
  "status": 200,
  "server_time": "2024-08-26 12:19:28"
}
          

Notice

Only temporary links made with Temporary link can be edited: 403 for any other file, 404 for a file that is not yours.
The same expiry rules as when the link was made apply.

Status code

200 Everything is OK. Request succeeded
400 Bad request (e.g. wrong parameters)
403 Permission denied
404 File not found
451 Unavailable