mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
30 lines
921 B
YAML
30 lines
921 B
YAML
post:
|
|
description: Invites one or more users to this project. It creates a user with an
|
|
invited status, and then sends an email to the user with instructions on how to
|
|
activate their account.
|
|
operationId: invite
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
email:
|
|
description: Email address or array of email addresses of the to-be-invited user(s).
|
|
type: string
|
|
responses:
|
|
'200':
|
|
description: Successful request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
$ref: '../../openapi.yaml#/components/schemas/User'
|
|
'401':
|
|
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
|
|
'404':
|
|
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
|
|
tags:
|
|
- Users |