## API to check if a collection/group exists
| param | description | example | optional |
|-------|-------------|---------|----------|
| query | collection/group name | Companies | yes |
| type | Name of entity | collection/group | yes |
Ref :
https://dc-preview.nferx.com/api/check_object_exists_for_query?query=sample_testing&type=group
https://dc-preview.nferx.com/api/check_object_exists_for_query?query=drugs-test&type=collection
#### Response
When a collection given is present
```json
{
"result" :
{
"name" : "Companies",
"exists" : True
}
}
```
When a collection given is not present
```json
{
"result" :
{
"name" : "Abormalities-cancer",
"exists" : False
}
}
```
When a group given is present
```json
{
"result" :
{
"name" : "Metabolites",
"exists" : True
}
}
```
When a group given is not present
```json
{
"result" :
{
"name" : "Pathway Drug Class",
"exists" : False
}
}
```