Invites a user to join the current tenant.
Creates an outstanding invitation for the given email and sends an invitation email with an accept link. If an invitation already exists for this email in the current tenant it is replaced. If the email is already an active member, returns 400.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The tenant identifier
The invitation details (email and role).
Email address of the user to invite.
email1 <= lengthDefines the access level a user has within a tenant.
"UNSPECIFIED" | "ADMIN" | "MEMBER"Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/users:invite" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "role": "UNSPECIFIED" }'{
"id": "string",
"userEmail": "string",
"slug": "string",
"displayName": "string",
"role": "ADMIN",
"expiresAt": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Retrieves a specific user by ID.
Looks up a single workspace member by their tenant user id. The id matches the `name` field returned by `GET /users`. Returns 404 if the user is not a member of the caller's workspace — this endpoint does not cross tenant boundaries. Use `PATCH /users/{user}` to mutate role or profile fields (admin-only).
Update a user.
Updates the specified user's properties. Only admins can perform this operation.