Approve / reject join requests
Approves or rejects pending join requests in batch. action is approve or reject; member_ids takes one or more ids from List group join requests.
https://api.unifyport.ai/v1/accounts/{account_id}/groups/join-requests/updateHeaders
X-Api-KeyWorkspace API key. The workspace is resolved from this header.
Content-TypeUse application/json when sending a JSON request body.
Path parameters
account_idIdentifier used in the groups route.
Request body
group_idTarget group identifier.
actionMember or approval action supported by the provider.
enum: approve, reject
member_ids[]Join-request member identifiers to process.
minItems: 1
Response body
okAlways true when the operation succeeded; failures return a non-2xx status instead.
Responses
200Request succeeded. See the example response body.
400The request body, path, or parameters are invalid.
401The X-Api-Key header is missing or invalid.
404The requested provider resource could not be found.
409The requested operation conflicts with an existing provider account or resource.
500The service encountered an unexpected error.
501The selected provider does not implement this operation.
502The provider adapter or upstream provider could not complete the operation.
Request
curl -X POST https://api.unifyport.ai/v1/accounts/{account_id}/groups/join-requests/update \
-H "X-Api-Key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"group_id": "group_example",
"action": "approve",
"member_ids": ["member_example", "member_other"]
}'Response
{
"data": {
"ok": true
}
}