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": "http://msn.com",
    "Keyword1": "Entertainment",
    "FullPageDownload": true,
    "Download_Html": true,
    "Download_Frames": true,
    "Download_StyleSheets": true,
    "GetParams": 
    [
        {
            "Name": "variable",
            "Value": "value"
        }
    ],
    "PostParams": [],
    "HeaderParams": [],
    "PrepareScript": "",
    "Device_Id": 8550,
    "Task_Type_Id": 1,
    "Name": "msn.com",
    "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:

{
    "Success":true,
    "Result":17989
}