cURL
curl --request POST \ --url https://api.weblinq.dev/v1/system/update-user-plan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "userId": "<string>", "plan": "free" }'
{ "success": true, "data": { "userId": "<string>", "plan": "free", "updatedBy": "<string>", "updatedAt": "<string>" }, "creditsCost": 123, "requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "timestamp": "2023-11-07T05:31:56Z" }
Update a user’s subscription plan (free/pro) - Admin only
Enter your API token or session token
User plan update parameters
The body is of type object.
object
User plan updated successfully
The response is of type object.