Organizations
Create an invite link for a demo organization
Dostęp
Tylko administratorzy Tillor.
POST
Makes a link that lets whoever opens it and signs in join the demo organization with full permissions. The URL is returned once and never again. Refused for organizations that are not flagged as demo. Super-admins only.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringLength
1 <= lengthapplication/json- body
validDays?||Default
30maxUses?integerRange
1 <= value <= 50Default
10OK
application/json- response
id*stringcreatedAt*stringFormat
date-timecreatedBy*|nullexpiresAt*stringFormat
date-timemaxUses*integerRange
-9007199254740991 <= value <= 9007199254740991useCount*integerRange
-9007199254740991 <= value <= 9007199254740991revokedAt*|nullurl*stringFormat
uricurl -X POST 'https://api.tillor.eu/admin/organizations//invite-links' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "string", "createdAt": "2019-08-24T14:15:22Z", "createdBy": { "id": "string", "name": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "maxUses": -9007199254740991, "useCount": -9007199254740991, "revokedAt": "2019-08-24T14:15:22Z", "url": "http://example.com"}List the invite links of an organization GET
Every invite link of the organization with its uses, expiry and revocation, newest first. Never the link itself. Super-admins only.
Revoke an invite link POST
Stops an invite link from working. People who already joined through it stay members. Super-admins only.