Resend an invitation
POST
/invitations/{id}/resend
const url = 'https://example.com/invitations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resend';const options = { method: 'POST', headers: {cookie: 'bottle.session_token=<bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/invitations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resend \ --cookie bottle.session_token=<bottle.session_token>Issues a new link and sends it. The previous link stops working, since only its hash was ever stored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”The invitation, with its new expiry
Media typeapplication/json
object
id
required
UUID v7
string format: uuid
email
required
string format: email
role
required
Owner: billing, deleting the tenant, full control of members. admin: all operational work and may manage drivers and admins. driver: their own round only.
string
invitedByName
required
string | null
expiresAt
required
string format: date-time
acceptedAt
required
string | null format: date-time
revokedAt
required
string | null format: date-time
createdAt
required
string format: date-time
Example
{ "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "role": "owner"}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or the role is not allowed to do this
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}No such invitation in this business
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}