Create and run tasks related to User documents through Qlik QMS API is not possible. Document Task-related QMS APIs require to have QlikView Distribution Service being activated with a Publisher license. And then work on Source documents, instead of User documents.
Environments:
QlikView