We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The handler only accepts email and role. Where the custom invite_url should also be available.
https://github.com/directus/directus/blob/main/packages/sdk/src/handlers/invites.ts
Invites only work when using the email and role parameters.
Should be possible to use: directus.users.invites.send({ email: values.email, role: this.state.role, invite_url: 'http://localhost:8000/invited/' })
directus.users.invites.send({ email: values.email, role: this.state.role, invite_url: 'http://localhost:8000/invited/' })
Response is: {"errors":[{"message":"\"email\" must be one of [string, array]","extensions":{"code":"INVALID_PAYLOAD"}}]}
{"errors":[{"message":"\"email\" must be one of [string, array]","extensions":{"code":"INVALID_PAYLOAD"}}]}
9.0.0.rc83
14.17.0
Postgres 10.17
Edge Chromium
Windows
NPX on Azure
The text was updated successfully, but these errors were encountered:
Support invite_url in SDK invite method (#6742)
c599c07
Fixes #6731
Successfully merging a pull request may close this issue.
Describe the Bug
The handler only accepts email and role. Where the custom invite_url should also be available.
https://github.com/directus/directus/blob/main/packages/sdk/src/handlers/invites.ts
To Reproduce
Invites only work when using the email and role parameters.
Should be possible to use:
directus.users.invites.send({ email: values.email, role: this.state.role, invite_url: 'http://localhost:8000/invited/' })
Response is:
{"errors":[{"message":"\"email\" must be one of [string, array]","extensions":{"code":"INVALID_PAYLOAD"}}]}
What version of Directus are you using?
9.0.0.rc83
What version of Node.js are you using?
14.17.0
What database are you using?
Postgres 10.17
What browser are you using?
Edge Chromium
What operating system are you using?
Windows
How are you deploying Directus?
NPX on Azure
The text was updated successfully, but these errors were encountered: