C
Ceepert
Guest
Hello,
I am currently working on a chatbot that is suppose to create new VSTS projects on demand. So far I managed to get all the names of already existing projects via the REST api.
I am using the program "Fiddler" to make the request so I can use them in C#
This is the closest I have gotten to a working POST request, but it keeps getting a 415 error
(Sorry I am not allowed to post images yet with this account)
POST https://MyUserName.visualstudio.com/_apis/projects?api-version=5.0-preview
Header:
User-Agent: Fiddler
Host: MyUsername.visualstudio.com
Authorization: Basic Q2VlcGVydDozbHR2endlcmGDsaE3154F6b2lhd2hzdnhqcHkzZ2p4NHNuaWdteWM0dWRlaGR2N3dh
Content-Length: 98
Content-Type: application/json-patch+json
Body:
{
"name": "FabrikamTravel",
"description": "Frabrikam travel app for Windows Phone"
}
The error:
{"$id":"1","innerException":null,"message":"TF400898: An Internal Error Occurred. Activity Id: 3e7c083c-0320-41db-a19a-38834ec32b4f.","typeName":"System.Web.Http.HttpResponseException, System.Web.Http","typeKey":"HttpResponseException","errorCode":0,"eventId":0}
I cant really find anything on that subject online besides one Forum post, but that one didnt help me.
Im a student, so I am still learning. So please keep the answeres relatively simple.
PS: The token is correct, I already used it to get the names of all existing projects.
Continue reading...
I am currently working on a chatbot that is suppose to create new VSTS projects on demand. So far I managed to get all the names of already existing projects via the REST api.
I am using the program "Fiddler" to make the request so I can use them in C#
This is the closest I have gotten to a working POST request, but it keeps getting a 415 error
(Sorry I am not allowed to post images yet with this account)
POST https://MyUserName.visualstudio.com/_apis/projects?api-version=5.0-preview
Header:
User-Agent: Fiddler
Host: MyUsername.visualstudio.com
Authorization: Basic Q2VlcGVydDozbHR2endlcmGDsaE3154F6b2lhd2hzdnhqcHkzZ2p4NHNuaWdteWM0dWRlaGR2N3dh
Content-Length: 98
Content-Type: application/json-patch+json
Body:
{
"name": "FabrikamTravel",
"description": "Frabrikam travel app for Windows Phone"
}
The error:
{"$id":"1","innerException":null,"message":"TF400898: An Internal Error Occurred. Activity Id: 3e7c083c-0320-41db-a19a-38834ec32b4f.","typeName":"System.Web.Http.HttpResponseException, System.Web.Http","typeKey":"HttpResponseException","errorCode":0,"eventId":0}
I cant really find anything on that subject online besides one Forum post, but that one didnt help me.
Im a student, so I am still learning. So please keep the answeres relatively simple.
PS: The token is correct, I already used it to get the names of all existing projects.
Continue reading...