Skip to content

Example in repo no longer working since v5.0 #139

@toddheslin

Description

@toddheslin

Expected Behavior

The following example from the readme should work:

courier-node/README.md

Lines 831 to 834 in 041a204

await courier.users.put("<USER_ID>", {
accounts: [{ account_id: "ACCOUNT_ID", profile: { foo: "bar" } }],
profile: { name: "John Doe" },
});

Actual Behavior

Receiving 400 error:

 {
    message: 'must NOT have additional properties',
    type: 'invalid_request_error'
  }

Steps to Reproduce the Problem

  1. Make request as per readme
  2. Catch thrown response
  3. Inspect response

Specifications

  • Version: 5.0
  • Platform: node18
  • Subsystem: macos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions