0

Using the Plivo API, I am able to create a subaccount, however the subaccount remains disabled. I can't see what I am doing wrong, either the docs are wrong or there is a bug in the API. It seems like enabled: true does not do anything. Any thoughts? Thanks

var plivo = require('plivo');
var plivoclient = new plivo.Client(auth_id, auth_token);
plivoclient.subAccounts.create("subaccount name", {
     enabled: true
})
Hammy
  • 109
  • 1
  • 9

1 Answers1

0

Replace the following

plivoclient.subAccounts.create("subaccount name", {enabled: true})

With

plivoclient.subAccounts.create("subaccount name", true)

Ref: https://github.com/plivo/plivo-node/blob/master/lib/resources/accounts.js#L118

Geo Jacob
  • 5,909
  • 1
  • 36
  • 43