Sign inGet Started

bird voice destinations update

Usage

代码示例
bird voice destinations update [flags]

Description

Update enabled Voice destination countries

Enable or disable the countries this workspace may place voice calls to, and set or remove their daily spend limits. Only the countries you list change; any country you omit keeps its current setting. Enabling one is what lets a call to it past the destination gate; disabling one refuses every call there, so confirm a disable with the user first. A destination's daily spend limit caps its daily spend, verification calls included, independently of whether it is enabled; it is an amount in the wallet currency, up to max_limit from bird voice settings get. Read bird voice destinations list first for the current settings and whether Bird carries calls to the country at all.

Build the request from flags, a JSON VoiceDestinationsUpdate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Procedure

Step 2 of 2 of "Enable the countries a workspace may call". Previous: bird voice destinations list.

Examples

代码示例
# print the body shape (no credentials needed)
bird voice destinations update --example

# the body it prints:
代码示例
{
  "destinations": [
    {
      "country_code": "NL",
      "enabled": true
    },
    {
      "country_code": "GB",
      "enabled": false
    }
  ]
}
代码示例
# enable the Netherlands
bird voice destinations update --destination NL=true

# enable the UK and cap it at 25 EUR a day
bird voice destinations update --destination "GB=true;25EUR"

# remove the UK's limit, leaving it enabled
bird voice destinations update --destination "GB=;none"

Options

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--destination <key=value>A country to change, as country_code=enabled;daily_spend_limit. Either half may be empty to leave it unchanged, and none removes the limit: NL=true, NL=false, "NL=true;25EUR", "NL=;25.50EUR", "NL=;none". Quote a value with a semicolon. Repeatable, one country per entry, sent in the order given; commas also separate entries. (required; or in --body-file)
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird voice destinations listList Voice destination countries

继续查看此主题的文档、指南和示例。