Skip to content

"items must be object, received item of type: string" at whitelisting an address  #3928

Description

@Antuan03

i get: "items must be object, received item of type: string",

at sending a createPolicyRule for example:

` const wallet = await bitgo
.coin(coin)
.wallets()
.get({ id: userWallet?.wallet_id });

  const policy = {
    action: {
      type: 'getApproval',
    },
    condition: {
      add: 'address',
    },
    id: 'withdraw_policy',
    type: 'advancedWhitelist',
  };

  const result = await wallet.createPolicyRule(policy);

  console.log(result);`

that code is exactly the same as the one in the docs here

also via API it gives me 401 and I have others calls with other endpoints and the same Authorization token works

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions