Skip to main content
POST
/
api
/
user
/
approveUid
Approve a pending membership
curl --request POST \
  --url https://pria.praxislxp.com/api/user/approveUid \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "ref": "60d5ec49f1b2c72b9c8e4d3b",
  "uI": "60d5ec49f1b2c72b9c8e4d3c"
}
'
{
  "success": true,
  "uI": {
    "_id": "<string>",
    "user": {},
    "institution": {},
    "status": "active"
  },
  "message": "Membership approved"
}

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"