Zum Hauptinhalt springen

Create a ProjectInvite

POST /v2/projects/{projectId}/invites/
v2
POST
project-create-project-invite

Request

  • projectIdstring (uuid)
    required

    ID of the Project to create a ProjectInvite for.

Responses

application/json

Created

  • avatarRefIdstring (uuid)

    Reference to the Project's avatar.

  • idstring (uuid)
    required

    ID of the ProjectInvite.

  • informationobject
    required
    • invitationTokenstring

      Token for authentication purposes.

    • invitedBystring (uuid)
      required

      ID of the user that created the invite.

    • userIdstring (uuid)

      ID of the user this invite is for.

  • mailAddressstring (email)
    required

    Mail-address of the user the ProjectInvite is for.

  • membershipExpiresAtstring (date-time)

    Time the ProjectMembership should expire at.

  • messagestring

    Message contained in the ProjectInvite.

  • projectDescriptionstring
    required

    Description of the Project the invite is created for.

  • projectIdstring (uuid)
    required

    ID of the Project the invitation is for.

  • rolestring (one of: notset, owner, emailadmin, external)
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"mailAddress":"email@mittwald.example","membershipExpiresAt":"2024-09-16T00:30:09.059Z","message":"string","role":"notset"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/projects/f0f86186-0a5a-45b2-aa33-502777496347/invites