Configuration API
Supported fileTypes info
OVERVIEW
Purpose
This api method helps to obtain information about blacklist/whitelist filetypes of Instance
Request URI
GET /configuration/supportedfiletypes
Sample request URL : https://domain.com/instancename/api/1/configuration/supportedfiletypes
Assumptions :
- Any system user can call this API
- If matched extension not found in system then only <type> tag is display for that filetype
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<listtype>blacklist</listtype>
<filetypes>
<filetype>
<type>txt</type>
<typeicon>https://domain.com/instancename/images/fileicon/txt.png</typeicon>
<typedesc>Plain Text Document</typedesc>
</filetype>
<filetype>
<type>jpg</type>
<typeicon>https://domain.com/instancename/images/fileicon/jpg.png</typeicon>
<typedesc>JPEG Image</typedesc>
</filetype>
</filetypes>
</configuration>
<configuration>
<listtype>blacklist</listtype>
<filetypes>
<filetype>
<type>txt</type>
<typeicon>https://domain.com/instancename/images/fileicon/txt.png</typeicon>
<typedesc>Plain Text Document</typedesc>
</filetype>
<filetype>
<type>jpg</type>
<typeicon>https://domain.com/instancename/images/fileicon/jpg.png</typeicon>
<typedesc>JPEG Image</typedesc>
</filetype>
</filetypes>
</configuration>
Response Code
Code | Meaning |
---|---|
200 | Response successfully |
401 | Unauthorized |
403 | Validation failed/ Forbidden |
405 | Method not allowed (calling api with wrong method) |
500 | Internal error occured while uploading document |
Hi HighQ Team, trying to use this api but it is resulting in
{
"listtype": "blacklist",
"filetypes": {
"filetype": null
},
"basicdetails": null
}
Data is present on site but not coming in api:
Can you please check.
Last Updated: Nov 08,2024
Comments
1 Comments