UserView based scripts can be created (recorded) only using special EveryStep Scripting Tool.

Task can be created using 2 methods:

PUT on the following URI : /tasks
POST on the following URI: /tasks?verb=PUT
PUT / POST Content Example (formatted) for a new ServerView based HTTP task:
    "RequestType": "GET",
    "Url": "",
    "Keyword1": "Entertainment",
    "FullPageDownload": true,
    "Download_Html": true,
    "Download_Frames": true,
    "Download_StyleSheets": true,
            "Name": "variable",
            "Value": "value"
    "PostParams": [],
    "HeaderParams": [],
    "PrepareScript": "",
    "Device_Id": 8550,
    "Task_Type_Id": 1,
    "Name": "",
    "Timeout": 0

Each Task type contains individual set of fields and values. You can find links to full list of attributes values here. To see table with list of values for Task_Type_Id, go to Potential Values for Task Type ID.

Success Response Example: