Description
POST /api/1/aws_marketplace/confirm_link/
Confirms link and modify it to download link.
Headers
{
access-token: {User Identifier}
}
Path Parameter
NOTE: This endpoint does not use path parameters.
Query Parameter
NOTE: This endpoint does not use query parameters.
Body Parameter
Parameter | Required | Type | Description |
public_hash | Required | string | Hash of public link |
ttl | Optional | integer | Expire date of link (Timestamp in milli-second) |
download_max | Optional | integer | Download max count |
password | Optional | string | Password of the link |
text | Optional | string | Link description |
Example
Request
import requests
url = "https://api.cloudike.net/api/1/aws_marketplace/confirm_link/"
payload = {'public_hash': 'HtsxXCq6z',
'ttl': 1728614956000, # Optional
'download_max': 0, # Optional
'password': '', # Optional
'text': 'text' # Optional
}
headers = {
'access-token': {User Identifier}
}
response = requests.request("POST", url, headers=headers, data=payload)
Response
{
"url": "https://cloudike.net/public/HtsxXCq6z"
}
Errors
InvalidParameters 400
Unauthorized 401
PlanExpired 426
InternalServerError 500