跳转到内容
开发者文档 / 资源版本分支接口

添加适用核心

向版本分支添加一个适用核心。重复添加同一核心不会创建重复关联。

位置参数类型必填说明
pathresourceIdinteger是资源 ID
pathresourceReleaseIdinteger是版本分支 ID
querycoreIdinteger是要添加的核心 ID
bash
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'
json
{"code": 200, "msg": "Success!", "data": null}

批量同步关联时优先使用更新版本分支接口的 cores 数组。

POST/api/resources/{resourceId}/releases/{resourceReleaseId}/cores

鉴权方式 请求头 Api-Key、Api-Secret