Invite Actions
Accepts a pending invitation using the invite ID or code
Path parameters
inviteIdstring · uuidRequiredExample:
Unique ID of the invite to accept
invite123-def6-7890-abcd-ef1234567890
Responses
200
Invitation accepted successfully
application/json
500
Internal server error
application/json
post
POST /memberships/invites/{inviteId}/accept HTTP/1.1
Host: api.example.com
Accept: */*
{
"success": true,
"message": "Invitation accepted successfully",
"invite": {
"id": "invite123-def6-7890-abcd-ef1234567890",
"code": "ABC12345",
"status": "accepted"
},
"membership": {
"id": "membership456-abc1-2345-6789-abcdef123456",
"type": "team",
"teamId": "team123-def6-7890-abcd-ef1234567890",
"userId": "user789-def6-7890-abcd-ef1234567890"
}
}
Rejects a pending invitation
Path parameters
inviteIdstring · uuidRequiredExample:
Unique ID of the invite to reject
invite123-def6-7890-abcd-ef1234567890
Body
reasonstringOptionalExample:
Optional reason for rejecting the invitation
Not interested at this time
Responses
200
Invitation rejected successfully
application/json
500
Internal server error
application/json
post
POST /memberships/invites/{inviteId}/reject HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"reason": "Not interested at this time"
}
{
"success": true,
"message": "Invitation rejected",
"invite": {
"id": "invite123-def6-7890-abcd-ef1234567890",
"code": "ABC12345",
"status": "rejected",
"rejectionReason": "Not interested at this time"
}
}