Deskhero Developer Hub
Back to deskhero.com
User invites

Create v2

Same invite behavior as the first version, but for workspaces billed through Shopify it first checks the subscription's capped amount: if the extra Users would push the charge past the cap, no invite is sent or stored and the response returns the current and the minimum required cap instead. The pending invites are then kept in a cookie and sent automatically once the higher cap has been approved in Shopify.

POST /api/{tenant:minlength(2)}/v{version:apiVersion}/user_invites/create_v2
Authorisation
Minimum role: ADMIN

Request arguments

Name Type Source
inputDTO_invite_usersBody
Request body example

Response

Status
200 (OK)
Type
DTO_user_invite_create_response
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_invite_users
NameTypeReadOnlyDescription
emailsString[]Emails
group_idsInt32[]Group ids
tenant_roleENUM tenant_user_roleTenant role
DTO_user_invite_create_response
NameTypeReadOnlyDescription
invitesDTO_user_invite[]Invites
capped_amountDTO_capped_amountCapped amount
DTO_user_invite
NameTypeReadOnlyDescription
groupsDTO_reference[]Groups
idInt32ReadOnlyId
emailStringEmail
tenant_roleENUM tenant_user_roleTenant role
expires_dateDateTimeReadOnlyExpires date
expires_relativeStringReadOnlyExpires relative
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
DTO_capped_amount
NameTypeReadOnlyDescription
is_shopify_paymentBooleanReadOnlyIs shopify payment
current_user_countInt32ReadOnlyCurrent user count
current_invite_countInt32ReadOnlyCurrent invite count
require_increaseBooleanReadOnlyRequire increase
minimum_required_capDoubleReadOnlyMinimum required cap
current_capDoubleReadOnlyCurrent cap
ENUM tenant_user_role
ValueNameDescription
0UNKNOWNUNKNOWN
1OWNEROwner
2ADMINAdmin
3USERUser

Generated Aug 4, 2026 18:37