A specific invite within a given workspace
https://api.xata.io/workspaces/workspace_id/invites/invite_id
This endpoint enables working with a given invite.
Expected Parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
workspace_id | Workspace ID | path | ✅ | string |
invite_id | Invite identifier | path | ✅ | string |
Updates an Existing Invite
PATCHhttps://api.xata.io/workspaces/workspace_id/invites/invite_id
This operation provides a way to update an existing invite. Updates are performed in-place; they do not change the invite link, the expiry time, nor do they re-notify the recipient of the invite.
Request Body Type Definition
1 2 3 4 5
type UpdateWorkspaceMemberInvite = { role: Role; }; type Role = "owner" | "maintainer";
Status Code | Description | Example Response/Type Definition |
---|---|---|
200 | Updated successfully. |
|
400 | Bad Request |
|
401 | Authentication Error |
|
403 | Authentication Error |
|
404 | Example response |
|
422 | Example response |
|
5XX | Unexpected Error |
Deletes an Invite
DELETEhttps://api.xata.io/workspaces/workspace_id/invites/invite_id
This operation provides a way to cancel invites by deleting them. Already accepted invites cannot be deleted.
Status Code | Description | Example Response/Type Definition |
---|---|---|
204 | No Content | |
400 | Bad Request |
|
401 | Authentication Error |
|
403 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |