Skip to main content
POST
Approve a pending membership

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
ref
string
required

The referrer user ID. Must match the authenticated user's ID.

Example:

"60d5ec49f1b2c72b9c8e4d3b"

uI
string
required

The UserInstitution ObjectId to approve (must be a valid ObjectId)

Example:

"60d5ec49f1b2c72b9c8e4d3c"

Response

Membership approved successfully

success
boolean
Example:

true

uI
object

The approved UserInstitution document (populated with user and institution)

message
string
Example:

"Membership approved"