Object Task is not supported in UI API Exception in Salesforce

Task object is not Supported for UI API.


For list of supported objects for UI API, check the following link
 
If you are looking for a way to create Task, without Apex, try Screen Flow.
 
Sample Flow:
 
 
Output: