cURL
curl --request PUT \ --url 'https://api.example.com/api/v1/user/{user_id}?api_key=' \ --header 'Content-Type: application/json' \ --data ' { "first_name": "<string>", "last_name": "<string>", "email": "jsmith@example.com", "is_active": true, "is_superuser": true, "birthdate": "2023-11-07T05:31:56Z", "is_enterprise": true, "role_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "phone": "<string>", "state": "<string>", "country": "<string>", "address": "<string>", "active_billing_plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "next_billing_plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "stripe_customer_id": "<string>", "stripe_subscription_id": "<string>", "stripe_subscription_status": "<string>", "stripe_has_payment_method": true, "is_trial": true, "used_trial": true, "is_paying": true, "stripe_last_payment_date": "2023-11-07T05:31:56Z", "billing_updated_at": "2023-11-07T05:31:56Z", "last_credits_refresh": "2023-11-07T05:31:56Z", "next_credits_refresh": "2023-11-07T05:31:56Z" } '
{ "message": "Data updated successfully", "meta": {}, "data": { "first_name": "<string>", "last_name": "<string>", "email": "jsmith@example.com", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "is_active": true, "is_superuser": false, "birthdate": "2023-11-07T05:31:56Z", "is_enterprise": false, "role_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "phone": "<string>", "state": "<string>", "country": "<string>", "address": "<string>", "active_billing_plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "next_billing_plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "stripe_customer_id": "<string>", "stripe_subscription_id": "<string>", "stripe_subscription_status": "<string>", "stripe_has_payment_method": false, "is_trial": false, "used_trial": false, "is_paying": false, "stripe_last_payment_date": "2023-11-07T05:31:56Z", "billing_updated_at": "2023-11-07T05:31:56Z", "last_credits_refresh": "2023-11-07T05:31:56Z", "next_credits_refresh": "2023-11-07T05:31:56Z", "follower_count": 0, "following_count": 0 } }
Update the User Profile
Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.
in-
Successful Response
Show child attributes
Was this page helpful?