Description
POST /api/1/aws_marketplace/create_file/
Upload file to existing upload 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 |
file_name | Required | string | File name including path |
overwrite | Optional | boolean |
Example
Request
import requests
url = "https://api.cloudike.net/api/1/aws_marketplace/create_file/"
payload = {
'public_hash': 'HblmICq6z',
'file_name': '/example/example.txt'
}
headers = {
'access-token': {User Identifier}
}
response = requests.request("POST", url, headers=headers, data=payload)
Response
{
"url": {File upload URL},
# headers of file upload request
"headers": {
"Content-Type": "multipart/form-data"
},
"parameters": {},
# method of file upload request
"method": "put",
"confirm_url": {File upload URL}
}
Errors
InvalidParameters 400
Unauthorized 401
FileNotFound 404 (Invalid link hash)
PlanExpired 426
InternalServerError 500