K2 REST Service Broker content-type question

  • 23 March 2020
  • 1 reply
  • 4 views

Hi All,

I'm trying to update work items in Azure DevOps via K2 REST Service Broker, however I always receive 400 Bad Request. My question - does K2 4.7 support "application/json-patch+json" Content-Type? If yes, please provide HttpHeader object.
Here is mine:
{"$type":"SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeader[], SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null","$values":[{"$type":"SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeader, SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null","Name":"content-type","Value":"application/json-patch+json; charset=utf-8"}]}
Thank you in advance for response.
 


1 reply

Hello,

I do not believe the application/json-patch+json content type is supported. Please see the following KB article.

https://help.k2.com/support-services/kbt177328

Reply