Delete a work items (Epics, Features, User Stories, Tasks, Bugs, Test Plans, Test Plan Runs, Requests)

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…
using System; using System.Net; using System.Net.Http; using System.Text; namespace REST.Test { class Program { static void Main(string[] args) { HttpClient client = new HttpClient(); client.BaseAddress = new Uri("https://restapi.tpondemand.com/api/v1/"); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; //delete work item ID#207 string query = "assignables/207"; //using access token generated at Personal Details page (Access Tokens tab) query += "?access_token=NjplaXdQeTJDOHVITFBta0QyME85QlhEOWpwTGdPM2V6VjIyelZlZ0NKWG1RPQ=="; Console.WriteLine("Posting to " + query); HttpResponseMessage response = client.DeleteAsync(query).Result; if (response.IsSuccessStatusCode) { Console.WriteLine(response.Content.ReadAsStringAsync().Result); } else { Console.WriteLine("{0} ({1})", (int)response.StatusCode, response.ReasonPhrase); } } } }
using System; using System.Net; using System.Net.Http; using System.Text; namespace REST.Test { class Program { static void Main(string[] args) { HttpClient client = new HttpClient(); client.BaseAddress = new Uri("https://restapi.tpondemand.com/api/v1/"); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; //delete work item ID#207 string query = "assignables/207"; //using a token generated at /api/v1/Authentication query += "?token=Njo4OTIyQzkzN0M5NEY3NzNENDIyNTM2RDU3MTMwMTMwOA=="; Console.WriteLine("Posting to " + query); HttpResponseMessage response = client.DeleteAsync(query).Result; if (response.IsSuccessStatusCode) { Console.WriteLine(response.Content.ReadAsStringAsync().Result); } else { Console.WriteLine("{0} ({1})", (int)response.StatusCode, response.ReasonPhrase); } } } }
using System; using System.Net; using System.Net.Http; using System.Text; namespace REST.Test { class Program { static void Main(string[] args) { HttpClient client = new HttpClient(); client.BaseAddress = new Uri("https://restapi.tpondemand.com/api/v1/"); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; //delete work item ID#207 string query = "assignables/207"; //using basic authentication (here 'John' is login and '123' is password) string authentication = Convert.ToBase64String(Encoding.ASCII.GetBytes("John:123")); client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", authentication); Console.WriteLine("Posting to " + query); HttpResponseMessage response = client.DeleteAsync(query).Result; if (response.IsSuccessStatusCode) { Console.WriteLine(response.Content.ReadAsStringAsync().Result); } else { Console.WriteLine("{0} ({1})", (int)response.StatusCode, response.ReasonPhrase); } } } }
using System; using System.Net; using System.Net.Http; using System.Text; namespace REST.Test { class Program { static void Main(string[] args) { HttpClient client = new HttpClient(); client.BaseAddress = new Uri("https://restapi.tpondemand.com/api/v1/"); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; //delete work item ID#207 string query = "assignables/207"; //using no authentication will result in 401 Unauthorized response Console.WriteLine("Posting to " + query); HttpResponseMessage response = client.DeleteAsync(query).Result; if (response.IsSuccessStatusCode) { Console.WriteLine(response.Content.ReadAsStringAsync().Result); } else { Console.WriteLine("{0} ({1})", (int)response.StatusCode, response.ReasonPhrase); } } } }
Path Params
int32
required

ID of the work item you'd like to delete

Query Params
string

Token, which was generated at Personal Details page (Access Tokens tab). Other options: token or basic authentication

string

Token, which was generated at /api/v1/Authentication. Other options: access_token or basic authentication

Headers
string
Defaults to Basic YWRtaW46YWRtaW4=

Basic authentication as a a Base64 encoded values for login:password. Other options: access_token or token

Responses

Language
Request
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain
application/xml