{"templateId":"markdown","sharedDataIds":{},"props":{"metadata":{"markdoc":{"tagList":["admonition","tabs","tab"]},"type":"markdown"},"seo":{"title":"Reefpay Docs","description":"Reefpay is the groundbreaking payment gateway that lets you integrate with the future of payments.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"update-a-user-profile","__idx":0},"children":["Update a user profile"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A valid API key — see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/how-tos/setup/obtain-credentials"},"children":["Obtain API credentials"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," of the user to update (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USER-3MtwBwLkdIwHu7ix28a3tqPa"]},")"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"updatable-fields","__idx":2},"children":["Updatable fields"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["first_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["User's first name"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["last_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["User's last name"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Email address (also the login username)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["phone"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Phone number in E.164 format"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["time_zone"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["IANA time zone"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Partial updates"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Include only the fields you want to change. Fields you omit are left unchanged."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1-send-the-update-request","__idx":3},"children":["Step 1: Send the update request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v1/users/{id}"]}," with the fields to change."]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"curl","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","header":{"controls":{"copy":{}}},"source":"curl -X POST \\\n  https://api.dev.paradisegateway.net/v1/users/USER-3MtwBwLkdIwHu7ix28a3tqPa \\\n  -H \"Content-Type: application/json\" \\\n  -H \"APIKEY: YOUR-API-KEY\" \\\n  -d '{\n    \"first_name\": \"Jonathan\",\n    \"phone\": \"+15559999999\",\n    \"time_zone\": \"America/Los_Angeles\"\n  }'\n","lang":"shell"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"import requests\n\nuser_id = \"USER-3MtwBwLkdIwHu7ix28a3tqPa\"\nresp = requests.post(\n    f\"https://api.dev.paradisegateway.net/v1/users/{user_id}\",\n    headers={\"Content-Type\": \"application/json\", \"APIKEY\": \"YOUR-API-KEY\"},\n    json={\n        \"first_name\": \"Jonathan\",\n        \"phone\": \"+15559999999\",\n        \"time_zone\": \"America/Los_Angeles\",\n    },\n)\nprint(resp.json())\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"JavaScript","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"const userId = \"USER-3MtwBwLkdIwHu7ix28a3tqPa\";\nconst resp = await fetch(\n  `https://api.dev.paradisegateway.net/v1/users/${userId}`,\n  {\n    method: \"POST\",\n    headers: {\n      \"Content-Type\": \"application/json\",\n      \"APIKEY\": \"YOUR-API-KEY\",\n    },\n    body: JSON.stringify({\n      first_name: \"Jonathan\",\n      phone: \"+15559999999\",\n      time_zone: \"America/Los_Angeles\",\n    }),\n  }\n);\nconsole.log(await resp.json());\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"C#","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"csharp","header":{"controls":{"copy":{}}},"source":"var userId = \"USER-3MtwBwLkdIwHu7ix28a3tqPa\";\nvar payload = new\n{\n    first_name = \"Jonathan\",\n    phone = \"+15559999999\",\n    time_zone = \"America/Los_Angeles\"\n};\nvar resp = await client.PostAsJsonAsync(\n    $\"https://api.dev.paradisegateway.net/v1/users/{userId}\", payload);\nConsole.WriteLine(await resp.Content.ReadAsStringAsync());\n","lang":"csharp"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"String userId = \"USER-3MtwBwLkdIwHu7ix28a3tqPa\";\nString body = \"\"\"\n    {\n      \"first_name\": \"Jonathan\",\n      \"phone\": \"+15559999999\",\n      \"time_zone\": \"America/Los_Angeles\"\n    }\n    \"\"\";\nHttpRequest request = HttpRequest.newBuilder()\n    .uri(URI.create(\n        \"https://api.dev.paradisegateway.net/v1/users/\" + userId))\n    .header(\"Content-Type\", \"application/json\")\n    .header(\"APIKEY\", \"YOUR-API-KEY\")\n    .POST(HttpRequest.BodyPublishers.ofString(body)).build();\nHttpResponse<String> resp = client.send(request,\n    HttpResponse.BodyHandlers.ofString());\nSystem.out.println(resp.body());\n","lang":"java"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Go","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"go","header":{"controls":{"copy":{}}},"source":"userId := \"USER-3MtwBwLkdIwHu7ix28a3tqPa\"\npayload := strings.NewReader(`{\n  \"first_name\": \"Jonathan\",\n  \"phone\": \"+15559999999\",\n  \"time_zone\": \"America/Los_Angeles\"\n}`)\nreq, _ := http.NewRequest(\"POST\",\n    \"https://api.dev.paradisegateway.net/v1/users/\"+userId, payload)\nreq.Header.Set(\"Content-Type\", \"application/json\")\nreq.Header.Set(\"APIKEY\", \"YOUR-API-KEY\")\nresp, _ := http.DefaultClient.Do(req)\ndefer resp.Body.Close()\nbody, _ := io.ReadAll(resp.Body)\nfmt.Println(string(body))\n","lang":"go"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PHP","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"$userId = \"USER-3MtwBwLkdIwHu7ix28a3tqPa\";\n$ch = curl_init(\"https://api.dev.paradisegateway.net/v1/users/$userId\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true,\n    CURLOPT_HTTPHEADER => [\"Content-Type: application/json\", \"APIKEY: YOUR-API-KEY\"],\n    CURLOPT_POSTFIELDS => json_encode([\n        \"first_name\" => \"Jonathan\",\n        \"phone\" => \"+15559999999\",\n        \"time_zone\" => \"America/Los_Angeles\",\n    ]),\n]);\necho curl_exec($ch); curl_close($ch);\n","lang":"php"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Ruby","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ruby","header":{"controls":{"copy":{}}},"source":"require \"net/http\"; require \"json\"\nuser_id = \"USER-3MtwBwLkdIwHu7ix28a3tqPa\"\nuri = URI(\"https://api.dev.paradisegateway.net/v1/users/#{user_id}\")\nreq = Net::HTTP::Post.new(uri, {\n  \"Content-Type\" => \"application/json\", \"APIKEY\" => \"YOUR-API-KEY\",\n})\nreq.body = {\n  first_name: \"Jonathan\", phone: \"+15559999999\",\n  time_zone: \"America/Los_Angeles\",\n}.to_json\nresp = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }\nputs resp.body\n","lang":"ruby"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-2-verify-the-response","__idx":4},"children":["Step 2: Verify the response"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]}," response returns the full, updated user object."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"USER-3MtwBwLkdIwHu7ix28a3tqPa\",\n  \"object\": \"user\",\n  \"first_name\": \"Jonathan\",\n  \"last_name\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"phone\": \"+15559999999\",\n  \"time_zone\": \"America/Los_Angeles\",\n  \"is_mfa_active\": false,\n  \"is_active\": true,\n  \"is_locked\": false,\n  \"correlation_id\": \"d4e5f6a7-b8c9-0123-def0-1234567890ab\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"changing-a-users-email","__idx":5},"children":["Changing a user's email"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Updating ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}," also changes the user's login username. Coordinate with the user before making this change so they know to use the new email at next login."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Email uniqueness"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each email address must be unique across all users. The API returns a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," error if the email is already in use."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":6},"children":["Next steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/how-tos/clients-users/reset-password"},"children":["Reset a user password"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/how-tos/clients-users/enable-mfa"},"children":["Enable MFA"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/concepts/account-hierarchy/users-and-roles"},"children":["About users and roles"]}]}]}]},"headings":[{"value":"Update a user profile","id":"update-a-user-profile","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Updatable fields","id":"updatable-fields","depth":2},{"value":"Step 1: Send the update request","id":"step-1-send-the-update-request","depth":2},{"value":"Step 2: Verify the response","id":"step-2-verify-the-response","depth":2},{"value":"Changing a user's email","id":"changing-a-users-email","depth":2},{"value":"Next steps","id":"next-steps","depth":2}],"frontmatter":{"title":"Update a user profile","shortTitle":"Update user","intro":"Modify a user's name, email, phone, or time zone using the Users API. The user ID is immutable and cannot be changed.","type":"how-to","seo":{"title":""}},"lastModified":"2026-06-05T02:46:44.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/how-tos/clients-users/update-user","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}