Xcode服务器Bots API:使用修补程序请求更新bot

Xcode服务器Bots API:使用修补程序请求更新bot,xcode,continuous-integration,httprequest,xcode-server,xcode-bots,Xcode,Continuous Integration,Httprequest,Xcode Server,Xcode Bots,我想通过发送补丁,通过Xcode服务器API编辑我的Xcode bot 然而,当我发送补丁请求时,Xcode服务器会回复我的旧蓝图的一个未更改的json 我的请求是curl-X PATCH-H“内容类型:application/json”-d“{\'My\':\'json\'}”https://:@:20343/api/bots/ 我缺少什么?缺少两个参数会导致以下问题: 缺少xcsclientversion:服务器将返回400个错误请求 缺少overwriteBlueprint=true:服

我想通过发送补丁,通过Xcode服务器API编辑我的Xcode bot

然而,当我发送补丁请求时,Xcode服务器会回复我的旧蓝图的一个未更改的json

我的请求是
curl-X PATCH-H“内容类型:application/json”-d“{\'My\':\'json\'}”https://:@:20343/api/bots/


我缺少什么?

缺少两个参数会导致以下问题:

  • 缺少
    xcsclientversion
    :服务器将返回400个错误请求
  • 缺少
    overwriteBlueprint=true
    :服务器不会更改蓝图
您的最终请求应如下所示:

curl-X PATCH-H“内容类型:application/json”-H“X-xcsclientversion:18”-d“{\”json goes\”:\“here\”}”https://:@:20343/api/bots/?overwriteBlueprint=true

来源:雷达和开发者关系(谢谢!)