【问题标题】:Activate KAA configuration using Server REST APIs使用服务器 REST API 激活 KAA 配置
【发布时间】:2018-10-12 05:52:53
【问题描述】:

我使用 kaa rest api 来激活我的配置(使用 Postman),但我不知道如何填写 configurationId 的参数内容类型。我试过了

{
"id" : "98593",
"applicationId": "32769",
"schemaId": "65544" ,
"endpointGroupId": "98308"}

但我收到 HTTP/1.1 400 Bad Request,任何建议将不胜感激。 谢谢

【问题讨论】:

    标签: kaa


    【解决方案1】:

    终于可以解决这个问题了 您需要将您的内容类型设置为 application/json 和 POST 正文只需填写配置 ID

    curl -v -S -u username:password -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '12423' 'http://localhost:8080/kaaAdmin/rest/api/activateConfiguration' | python -mjson.tool
    

    【讨论】:

      猜你喜欢
      • 2016-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多