injected services
Optional
organizationAPI?: null | Pick<OrganizationDefaultAdapterAPI, "getUserOrganizationRole">injected logger used to handle the logging
request context [headers, body, params, query]
200 Status OK
This validator will check if the user can create a new invitation:
If the user is an app, allow the request
Enforce that the fromUserId is the same as the authenticated user
If organizationApi is provided, enforce that user belongs to orgId with a role of owner or admin
If organizationApi is not provided, enforce orgId is not present
Allow the request
400 NBError Bad Request
403 NBError Forbidden
Generated using TypeDoc
Validator to test if a user can create the given invitation