This function configures the directory indexing settings for a directory on the cPanel account.
uapi --output=jsonpretty \ --user=username \ DirectoryIndexes \ set_indexing \ dir='/home/example/example.com' \ type='inherit'
{- "apiversion": 3,
- "func": "set_indexing",
- "module": "DirectoryIndexes",
- "result": {
- "data": "disabled",
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}