Knock Actions
Approves a pending knock request and creates the corresponding membership
Path parameters
knockIdstring · uuidRequiredExample:
Unique ID of the knock to approve
knock123-def6-7890-abcd-ef1234567890
Body
approvalMessagestringOptionalExample:
Optional message for the approval
Welcome to the team! We're excited to have you.
customRolestringOptionalExample:
Override the requested role (optional)
member
customPermissionsstring[]OptionalExample:
Override the requested permissions (optional)
["read","write"]
Responses
200
Knock approved successfully
application/json
500
Internal server error
application/json
post
POST /memberships/knocks/{knockId}/approve HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"approvalMessage": "Welcome to the team! We're excited to have you."
}
{
"success": true,
"message": "Knock request approved successfully",
"knock": {
"id": "knock123-def6-7890-abcd-ef1234567890",
"status": "approved",
"approvalMessage": "Welcome to the team!"
},
"membership": {
"id": "membership456-abc1-2345-6789-abcdef123456",
"type": "team",
"teamId": "team123-def6-7890-abcd-ef1234567890",
"userId": "user789-def6-7890-abcd-ef1234567890"
}
}
Rejects a pending knock request
Path parameters
knockIdstring · uuidRequiredExample:
Unique ID of the knock to reject
knock123-def6-7890-abcd-ef1234567890
Body
rejectionReasonstringOptionalExample:
Reason for rejecting the knock request
We are not hiring at this time
rejectionMessagestringOptionalExample:
Optional message for the rejection
Thank you for your interest. We'll keep your information for future opportunities.
Responses
200
Knock rejected successfully
application/json
500
Internal server error
application/json
post
POST /memberships/knocks/{knockId}/reject HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"rejectionReason": "We are not hiring at this time",
"rejectionMessage": "Thank you for your interest. We'll keep your information for future opportunities."
}
{
"success": true,
"message": "Knock request rejected",
"knock": {
"id": "knock123-def6-7890-abcd-ef1234567890",
"status": "rejected",
"rejectionReason": "We are not hiring at this time",
"rejectionMessage": "Thank you for your interest."
}
}