开发者文档 / 资源版本分支接口
添加适用核心
向版本分支添加一个适用核心。重复添加同一核心不会创建重复关联。
| 位置 | 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| path | resourceId | integer | 是 | 资源 ID |
| path | resourceReleaseId | integer | 是 | 版本分支 ID |
| query | coreId | integer | 是 | 要添加的核心 ID |
curl -X POST 'https://resource-api.xyeidc.com/api/resources/42/releases/649/cores?coreId=25' \
-H 'Api-Key: YOUR_API_KEY' \
-H 'Api-Secret: YOUR_API_SECRET'
{"code": 200, "msg": "Success!", "data": null}
批量同步关联时优先使用更新版本分支接口的 cores 数组。
POST
/api/resources/{resourceId}/releases/{resourceReleaseId}/cores鉴权方式 请求头 Api-Key、Api-Secret
