Authentication
Bearer token: Bearer <admin_token>
This endpoint requires admin privileges.
Path Parameters
The user’s profile ID (UUID)
Request Body
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
- Status Updated - Profile status changes to
rejected
- Email Sent - Rejection notification sent to user (if email enabled)
Errors
| Status | Description |
|---|
| 401 | Invalid or expired token |
| 403 | Admin access required |
| 404 | User not found |
| 409 | User already approved or rejected |