Skip to main content
POST
/
api
/
user
/
approveUid
Approve user institution membership
curl --request POST \
  --url http://localhost:3000/api/user/approveUid \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "userInstitutionId": "<string>",
  "approved": true
}
'
{
  "success": true,
  "message": "User approved successfully"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
userInstitutionId
string
required

The user institution ID to approve

approved
boolean
default:true

Whether to approve (true) or reject (false)

Response

User approved/rejected successfully

success
boolean
Example:

true

message
string
Example:

"User approved successfully"