{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/:site_id/assets/upload","auth":"required","settings":"56ea050204dc470e002870f1","results":{"codes":[{"code":"","language":"text"}]},"params":[{"name":"site_id","type":"string","default":"ZMP site ID","desc":"","required":false,"in":"path","ref":"","_id":"624323f405b7e6004a01a63b"},{"name":"filepath","type":"string","default":"","desc":"url path of the existing hosted image","required":false,"in":"body","ref":"","_id":"624323f405b7e6004a01a63c"},{"name":"folder_path","type":"string","default":"","desc":"optional - images with no folder_path specified will be stored under /api_images/ - images with a folder_path will be stored under /api_images/folder_path/ - folders will be created if they do not exist already","required":false,"in":"body","ref":"","_id":"624323f405b7e6004a01a63d"}],"examples":{"codes":[{"code":"{\n\"filepath\": \"hostedpath.com/image/testimage.jpg\",\n\"folder_path\": \"images/sample_images/123\"\n}\n\nResult Format:\n{\n\"hostedpath_original\": \"https://.../api_images/images/sample_images/123/testimage.jpg\"\n}","language":"json"}]},"method":"post"},"next":{"description":"","pages":[]},"title":"Asset Upload","type":"endpoint","slug":"asset-api","excerpt":"Upload an asset (Image and PDFs with these extensions: .png, .jpg, .jpeg, .bmp, .gif, .tiff or .pdf only) to be hosted by Zeta","body":"","updates":[],"order":999,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"624323f405b7e6004a01a63a","createdAt":"2022-03-29T15:21:24.945Z","user":"5fff4f70b96cc100ffd684e1","category":{"sync":{"isSync":false,"url":""},"pages":["56ec26de1b16a3290030cf58"],"title":"Zeta REST API","slug":"bme-rest-api","order":2,"from_sync":false,"reference":true,"_id":"56ec25c538ff1d2200d56cc2","version":"56aff08c3a5b810d00745d9c","__v":1,"createdAt":"2016-03-18T15:59:01.460Z","project":"56aff08c3a5b810d00745d99"},"version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["56aff08d3a5b810d00745d9d","56aff24f3a5b810d00745da0","56aff25dbc304a0d00ace207","56aff287e0b1e40d00c53798","56aff2b260a37a0d00ed8883","56aff2b8e0b1e40d00c53799","56aff2bd5b1f01170014dc7b","56aff2c9d21e9c0d00b62993","56aff493aef9a21700da0e67","56aff4ce1486990d009c0f64","56aff4da5b1f01170014dc7d","56aff4dfe0b1e40d00c537a2","56aff4e59d32e30d0006d3e9","56aff4e91486990d009c0f65","56aff4f93a5b810d00745da2","56aff4fe9d32e30d0006d3ea","56b91c7ab1e03e0d001057c5","56c4f51aba4a540d0091b9a2","56cd09488c4a331d002c1e44","56d4ec4773dcd20b00fb8769","56e79bc515f96b2200878e54","56ec25c538ff1d2200d56cc2","56ec3a6f36bc8e0e00f190c8","56ec3e308ea7ce0e00a3d8b0","5724d8fe4255580e005938b2","5724dc842ad0bc1700122803","5776ef2a04f7500e0095dc37","57ab9f70b5e8742000e17eb9","57d7117646dcc30e007dd21f","58e6abd5b1eece19008b7d31","59288c65e2653627003e1221","5a8f4797a44f8600128e75ee","5bbf8833eb416300039a2c14","5ea811617bf4b5007328a0af","624322a1991d51047c8a5af9"],"_id":"56aff08c3a5b810d00745d9c","project":"56aff08c3a5b810d00745d99","releaseDate":"2016-02-01T23:55:56.544Z","__v":35,"createdAt":"2016-02-01T23:55:56.544Z"},"project":"56aff08c3a5b810d00745d99","__v":7,"parentDoc":null}

postAsset Upload

Upload an asset (Image and PDFs with these extensions: .png, .jpg, .jpeg, .bmp, .gif, .tiff or .pdf only) to be hosted by Zeta

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

site_id:
stringZMP site ID

Body Params

filepath:
string
url path of the existing hosted image
folder_path:
string
optional - images with no folder_path specified will be stored under /api_images/ - images with a folder_path will be stored under /api_images/folder_path/ - folders will be created if they do not exist already

Examples


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}