Skip to main content
POST
/
api
/
profiles
/
{user_id}
/
reject
Reject Registration
curl --request POST \
  --url https://api.example.com/api/profiles/{user_id}/reject \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'

Authentication

Authorization
string
required
Bearer token: Bearer <admin_token>
This endpoint requires admin privileges.

Path Parameters

user_id
string
required
The user’s profile ID (UUID)

Request Body

reason
string
Optional rejection reason to include in notification email

Example Request

curl -X POST https://api.sari-platform.com/api/profiles/550e8400-e29b-41d4-a716-446655440000/reject \
  -H "Authorization: Bearer <admin_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Company verification failed"
  }'

Response

{
  "message": "User rejected"
}

What Happens

  1. Status Updated - Profile status changes to rejected
  2. Email Sent - Rejection notification sent to user (if email enabled)

Errors

StatusDescription
401Invalid or expired token
403Admin access required
404User not found
409User already approved or rejected