Unicat API Reference

Up - API Reference - Home


/api/decline_invite

Decline an invite directly from an invitation link, without login.

The invite contains a user gid for the invitee and a project gid; this method declines the invite based on those values, so invitees without an account can still decline.

Request

POST /api/decline_invite

{
    "invitee": "<user-gid>",
    "project": "<project-gid>"
}

Success response

{
    "success": true,
    "result": {
        "project": "218437b3-f3db-4f60-9d44-c96319aa3c57",
    },
    "data": {
        "cc.projects_members": [
            {
                "project_gid": "218437b3-f3db-4f60-9d44-c96319aa3c57",
                "user_gid": "b76f701d-3d34-4f39-8eeb-fafe294ab01e",
                "status": "declined",
                "roles": [
                    "member"
                ],
                "options": {
                    "language": "en",
                    "timezone": "Europe/Amsterdam"
                }
            },
        ]
    }
}

result

project is the project gid for the project you declined.

data

cc.projects_members is a list with metadata for your project membership status: declined.

Error response

400 Bad request - missing parameters (only the first is reported).
422 Unprocessable entity - decline failed