Unicat API Reference

Up - API Reference - Home


/api/p/<project gid>/members/resend_invite

Requires JWT.

Resend the invitation. Useful if the invitee lost their invite-link or you think they may have missed the invitation.

Only works if the invitee hasn't already accepted. You can resend a declined invitation, don't abuse this.

Only the owner of the project can resend an invitation.

Request

POST /api/p/<project gid>/members/resend_invite
Authorization: Bearer <JWT>

{
    "user": "<user gid>",
}

user an invitee's gid.

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {
        "user": "b76f701d-3d34-4f39-8eeb-fafe294ab01e",
    },
    "data": {
        "cc.users": {
            "b76f701d-3d34-4f39-8eeb-fafe294ab01e": {
                "gid": "b76f701d-3d34-4f39-8eeb-fafe294ab01e",
                "name": "Unicat",
                "avatar": "96ec02b2-fb8d-4fb4-b952-fad0c4b88a74.jpg",
                "username": "unicat"
            },
        },
        "cc.projects_members": [
            {
                "project_gid": "<project gid>",
                "user_gid": "b76f701d-3d34-4f39-8eeb-fafe294ab01e",
                "status": "invited",
                "roles": [
                    "member"
                ],
                "options": {
                    "language": "en",
                    "timezone": "Europe/Amsterdam"
                }
            }
        ]
    }
}

result

user is the invitee's gid.

data

cc.users is a dictionary with an entry for the user.
cc.projects_members is a list with metadata for the invited member.

Error responses

401 Unauthorized - missing or expired JWT
403 Forbidden - not the owner of this project
422 Unprocessable entity - resend failed