kaa - 使用服务器 REST API 激活 KAA 配置
问题描述
我使用 kaa rest api 来激活我的配置(使用 Postman),但我不知道如何填充 configurationId 的 Parameter 内容类型。我试过
{
"id" : "98593",
"applicationId": "32769",
"schemaId": "65544" ,
"endpointGroupId": "98308"}
但我收到 HTTP/1.1 400 Bad Request,任何建议将不胜感激。谢谢
解决方案
最后我可以解决这个问题,您需要将您的内容类型设置为 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
推荐阅读
- git - 带有智能 http 和 redmine_git_hosting 的 redmine 不允许推送到存储库
- vb.net - 更新我的数据库中 datagridview.selected row.check = true 的记录
- angular - 带有自定义商店和 Angular 6 的 DevExpress dxSelectBox
- ios - 从 Firebase Swift 加载后单元格不显示图像
- json - 在 API 调用和 JSON.parse 之后操作结果
- android - Android 推送通知中的优惠和交易实现
- vba - 组合框消失了,永远不会回来
- r - R:填充时间序列值,但仅在过去 12 个月内
- c++ - C++ 静态成员初始化
- javascript - 部分未在动态网页上呈现