更新成本中心¶
功能说明¶
更新成本中心编码,名称,标签或状态,四者必填其一作为更新条件
接口地址¶
- 测试环境: https://openapi.guanaitong.tech/billing/cost/updateCostCenter
- 生产环境: https://openapi.guanaitong.com/billing/cost/updateCostCenter
HTTP请求方式¶
- Method: POST
- Content-Type: application/x-www-form-urlencoded
参数说明¶
- 公有参数
发送请求是必须传入公共参数,详见公共参数
- 私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
|---|---|---|---|---|
| enterprise_code | 否 | string | [1,20] | 企业编号(集团和运营商必填,企业不填) |
| cost_center_id | 是 | int | 1-99999999 | 成本中心id ,与【成本中心编号】必填其一 |
| cost_center_code | 是 | string | [1,50] | 成本中心编号 与【成本中心id】必填其一 |
| cost_center_name | 否 | string | [1,100] | 条件字段:成本中心名称 |
| cost_center_tags | 否 | string | [1,300] | 条件字段:成本中心标签,多个标签用 $#$ 符号连接例如codea$#$codeb |
| status | 否 | int | 条件字段:成本中心状态 1开启 2关闭 |
请求示例¶
POST /billing/cost/updateCostCenter HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
cache-control: no-cache
access_token=7e80dca5b712d1e5cee9893293a4de43&sign=adab5cb9ee1315c43ab5fd8a86c969bc37f9d67b
&cost_center_name=center280&cost_center_id=1234×tamp=1578968339
返回参数说明¶
| 参数说明 | 描述 |
|---|---|
| code | 返回码,0代表正确返回 |
| msg | 如果错误,返回错误信息。 |
| data | 返回成本中心id |