Adjust Membership Time
Add or remove time from a user’s membership.
Endpoint: POST /adjust-membership-time
Headers:
Authorization: Bearer <admin_api_key>(required)Content-Type: application/json
Request Body:
{
"user_id": "456e7890-e89b-12d3-a456-426614174000",
"minutes": 43200,
"action": "add"
}Fields:
user_id- The UUID of the userminutes- Number of minutes to add or removeaction- Eitheraddorremove
Response:
Returns the full user object (same shape as Get User).
Errors:
401- Invalid Admin API Key404- User not found409- Cannot adjust time for a lifetime membership
Last updated on