View as Markdown

SDK reference · Python SDK

prov.account.update_sending_number_details

prov.account.update_sending_number_details in Python SDK. Edit saved details (only before the request starts).

Signature

prov.account.update_sending_number_details(number_id: str, **changes: Any = …) -> Any

Parameters

number_idstrRequired
**changesAny

Request fields

idstringpathRequired
The sending number's id.

Returns

Any The row with the new details.

HTTP operation

PATCH /v1/account/sending_numbers/{id}: Edit saved details

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/sending_numbers/snum_4f2a9c0e7b1d3e5a6c8b`, {
  method: "PATCH",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "monthly_volume": 2500, "contact": { "phone": "+12175550199" } }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.