Workspace Invites
https://api.xata.io/workspaces/workspace_id/invites
This endpoint enables working with invites for a given workspace.
Expected Parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
workspace_id | Workspace ID | path | ✅ | string |
Invite a User to Join the Workspace
POSThttps://api.xata.io/workspaces/workspace_id/invites
Invite some user to join the workspace with the given role
Request Body Type Definition
1 2 3 4 5 6 7 8 9
type InviteWorkspaceMember = { /* * @format email */ email: string; role: Role; }; type Role = "owner" | "maintainer";
Status Code | Description | Example Response/Type Definition |
---|---|---|
201 | Created |
|
400 | Bad Request |
|
401 | Authentication Error |
|
403 | Authentication Error |
|
404 | Example response |
|
409 | Example response |
|
5XX | Unexpected Error |