Conscent.ai Developer Documentation
  • Version 2.0
    • Using Conscent.ai
    • Web SDK
    • Login
    • Logout
    • User Details Drawer
    • Google One Tap
    • Mobile SDK
      • iOS(Swift)
        • In-App Purchases with Conscent
      • Android SDK
      • React Native SDK
      • Google In-App Purchases with Conscent
      • Apple In-App Purchases with Conscent
    • Facebook SSO Integration Guide
    • Landing Page API v 2.0
    • AMP Integration
    • Integrating APIs(v2)
      • Purchase Details
      • User Registered Or Not
      • User Registrations
      • Subscription Plans Details
      • Get User Details
      • Add Subscription If User Registered
      • Update UserDetails
      • Update SubscriptionDetails
      • Get All Transaction Details
    • IAM System API Documentation
  • Version 1.0
    • Getting Started
    • On Board
    • Using Conscent.ai
    • Authentication
    • Web SDK
    • Login
    • Logout
    • Amp Documentation
    • Mobile SDK
      • Android
      • Flutter
      • iOS(Swift)
      • React Native SDK
    • Auto Login
    • Creating External Purchases
    • Landing Page API
  • Login Screen Customization
  • Integrating Client Payment Gateway
  • Integrating with APIs
    • User Details and Subscriptions Information
    • Purchased Subscriptions
    • User and Purchase Details
    • Client Purchases
    • Client Micropayments
    • Client Passes
    • Cancel Active Subscriptions
    • Delete User
  • Events API Docs
    • Different Types of Events
    • SSO Login Flow
  • Discount Coupon
    • Dynamic Coupon API Generation:
  • New Webhooks
    • Meter Banner Webhook
    • Paywall Webhook
    • SignUp Webhook
    • Refund Webhook
    • Purchase Webhook
    • Subscription Landing Page Webhook
    • Popup Webhook
    • User Update Webhook
    • Payment Gateway Webhook
    • Review Page Webhook
    • Transaction Webhook
    • Login Webhook
    • Cancel Subscription Webhook
  • Old Webhooks
    • Sign Up Webhook
    • Login Webhook
    • Subscription Payment Webhook
    • Subscription Cancelled Webhook
    • Pass Payment Webhook
    • Subscription Bundle Payment Webhook
    • Review Subscription Webhook
    • Micro Payment Webhook
    • How to validate Webhooks?
  • Registering The Content
    • Create Content
    • Edit Content
    • View Content
  • Country Code List
  • Supported Currencies and Payment Gateways
    • Stripe Supported Country with Currency
    • Razorpay Supported Country with Currency
    • Paypal Supported Country with Currency
  • Errors
  • Loyalty System
    • Web SDK
    • iOS SDK
    • Android SDK
    • Flutter SDK
    • API from server
Powered by GitBook
On this page
  1. Version 2.0
  2. Integrating APIs(v2)

Update UserDetails

PreviousAdd Subscription If User RegisteredNextUpdate SubscriptionDetails

Last updated 7 days ago

Update details of the user

PATCH {API_URL}/client/update-user

Auth required: YES

Please pass your API key as the username and API secret as the password as Basic Auth to access the endpoint

Query Parameters

Name
Type

userId

Id of the user

{
    "message": "User Details Updated Successfully.",
    "userData": {
        "status": "ACTIVE",
        "userId": "681c74b2333e169d16a7e58b",
        "name": "Shivam Dubey",
        "email": "shivamdubey+kljo@conscent.ai",
        "countryCode": "+91",
        "phone": "98679796896",
        "gender": "MALE",
        "dateOfBirth": "2025-05-13T16:13:02.128Z",
        "address": {
            "name": "",
            "apartment": "",
            "area": "",
            "pincode": "",
            "landmark": "",
            "city": "",
            "state": "",
            "country": ""
        },
        "usedCoupons": [],
        "clientSpecificIds": [],
        "migrated": false,
        "isPhoneVerified": true,
        "isEmailVerified": true,
        "shippingAddress": [
            {
                "name": "",
                "apartment": "20/41 Rambagh",
                "area": "",
                "pincode": "2820006",
                "landmark": "",
                "city": "Agra",
                "state": "UP",
                "country": "USA",
                "_id": "681c94453b8e51752d8b55d9"
            }
        ],
        "billingAddress": [
            {
                "name": "",
                "apartment": "20/41 Rambagh",
                "area": "",
                "pincode": "282008",
                "landmark": "",
                "city": "Agra",
                "state": "UP",
                "country": "USA",
                "_id": "681c94453b8e51752d8b55d8"
            },
            {
                "name": "",
                "apartment": "20/41 Rambagh",
                "area": "",
                "pincode": "282006",
                "landmark": "",
                "city": "Agra",
                "state": "UP",
                "country": "INDIA",
                "_id": "681c9aa0686c9aa662232d9a"
            }
        ],
        "createdAt": "2025-05-08T09:09:08.369Z",
        "updatedAt": "2025-05-08T11:50:56.442Z"
    }
}

You need to pass userIdof the user.