I'm working on creating a VSTS Workitem(Task) using REST API. I'm referencing the below rest api POST https://{accountName}.visualstudio.com/{project}/_apis/wit/workitems/${type}?api-version=5.0-preview.3
On the above API, how can I pass the input to ${type}. Say if I want to create a Task, how can I pass the value. I'm using the below body as mentioned in the document.
[
{
"op": "add",
"path": "/fields/System.Title",
"from": null,
"value": "Sample task"
}
]
When I try this, I'm getting 404 error. Looking for the help to resolve this issue.
Thanks, Siva