0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/spec/requests/api/schemas/json/invite_create_response.json
Keegan George 983b7f6dee
FEATURE: Allow inviting staff as admins or moderators (#41880)
**Previously**, the staff invite modal only offered a single "Admins"
tab that could invite people as admins.

**In this update**, the tab is renamed to "Staff" and an "Invite as"
choice lets you send the invitation as either an admin or a moderator.

| Before | After |
| --- | --- |
|
![before](https://github.com/discourse/discourse/releases/download/_gh-attach-assets/before-1z1m4y.png)
|
![after](https://github.com/discourse/discourse/releases/download/_gh-attach-assets/after-gwu25s.png)
|
2026-07-21 14:05:21 -07:00

104 lines
1.8 KiB
JSON
Vendored

{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"example": 42
},
"invite_key": {
"type": "string"
},
"link": {
"type": "string",
"example": "http://example.com/invites/9045fd767efe201ca60c6658bcf14158"
},
"description": {
"type": [
"string",
"null"
]
},
"email": {
"type": "string",
"example": "not-a-user-yet@example.com"
},
"domain": {
"type": [
"string",
"null"
]
},
"emailed": {
"type": "boolean",
"example": false
},
"can_delete_invite": {
"type": "boolean"
},
"custom_message": {
"type": [
"string",
"null"
],
"example": "Hello world!"
},
"created_at": {
"type": "string",
"example": "2021-01-01T12:00:00.000Z"
},
"updated_at": {
"type": "string",
"example": "2021-01-01T12:00:00.000Z"
},
"expires_at": {
"type": "string",
"example": "2021-02-01T12:00:00.000Z"
},
"expired": {
"type": "boolean",
"example": false
},
"grants_admin": {
"type": "boolean",
"example": false
},
"grants_moderator": {
"type": "boolean",
"example": false
},
"topics": {
"type": "array",
"items": {
"type": "object"
},
"example": []
},
"groups": {
"type": "array",
"items": {
"type": "object"
},
"example": []
}
},
"required": [
"id",
"invite_key",
"link",
"description",
"email",
"domain",
"emailed",
"can_delete_invite",
"custom_message",
"created_at",
"updated_at",
"expires_at",
"expired",
"grants_admin",
"grants_moderator",
"topics",
"groups"
]
}