Post
/api/3/UploadImage/GetImageSettings?websiteId={websiteId}&webApiClientKey={webApiClientKey}
The Get Image Settings API provides the configuration details for image uploads within the Artifi platform. This API helps retrieve settings like allowed file extensions, maximum file size, image dimensions, and DPI (dots per inch) for the images associated with the website.
Request Information
Parameters
Response Information
Response body formats
On Success
On success, this method will call back the JavaScript method in the website which is specified in the "successCallback" parameter with errorMessage.
Success Response:
{
"Response": "Success",
"Message": "",
"Data": {
"FileSize": 5,
"ImageExtensions": "JPEG,JPG,PNG",
"Dimension": {
"Width": 3000,
"Height": 3000
},
"ImageDPI": 90,
"UserPhotoImageWidth": 0,
"UserPhotoImageHeight": 0
},
"ErrorCode": ""
}
On Error
On error, this method will call back the JavaScript method in the website which is specified in the "errorCallback" parameter with errorMessage.
Error Response:
{
"Response": "Error",
"Message": "Invalid website id.",
"Data": null,
"ErrorCode": "221,234"
}