Skip to content

📚 Documentation: Clarify when URL is optional in teams.createMembership() #635

@xuelink

Description

@xuelink

👟 Reproduction steps

13.0.0 Release Note has

BREAKING - Parameter url is now optional in the createMembership endpoint

Even though the url is optional, it gives a url missing error.

teams.createMembership(
  teamId,
  ['owner'],
  undefined,
  userId
);

Linked issue:appwrite/appwrite#6839

Screenshot 2023-10-09 at 15 01 47

👍 Expected behavior

it may work or give another error like permission is not allowed.

👎 Actual Behavior

it gives URL is required error.

ERROR Error: Uncaught (in promise): AppwriteException: URL is required

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

sdk-web 13.0.0

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions