更新订阅绑定的计费账户信息
更新订阅绑定的计费账户信息
Path Parameters
name string required
订阅标识
application/json
Request Body required
name string required
订阅标识
billing_accounts object[]
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
billing_accounts object[]
{
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"distribution_ratio": 0,
"apply_ratio": 0,
"state": "BINDING"
}
]
}
Default error response
application/json
Schema
Example (from schema)
Schema
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v1/subscriptions/:name/billingAccounts
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
curl / cURL
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'
python / requests
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'
go / native
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'
nodejs / axios
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'
ruby / Net::HTTP
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'
csharp / RestSharp
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'
php / cURL
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'
java / OkHttp
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'
powershell / RestMethod
curl -L -X POST 'https://management.sensecoreapi.cn/rmh/v1/subscriptions/:name/billingAccounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"billing_accounts": [
{
"id": "string",
"billing_account_id": "string",
"apply_ratio": 0
}
]
}'