---
updatedAt: 2026-03-01T17:55:19.000Z
---

# Update a user profile

```shell Shell
hostname="https://se-demos-gstemp.us-dev.janraincapture.com"

curl -L -X POST "$hostname/oauth/update_profile_native" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'access_token=9ss59djxyp6b6zdj' \
--data-urlencode 'client_id=ghbx62uayrm74nyp2nzb7hvmfjf2zmqy' \
--data-urlencode 'flow=test-flow' \
--data-urlencode 'flow_version=20210406175001388696' \
--data-urlencode 'locale=en-US' \
--data-urlencode 'form=editProfileForm' \
--data-urlencode 'firstName=Matthew'
```

```node Node
const hostname="https://se-demos-gstemp.us-dev.janraincapture.com"

var request = require('request');
var options = {
  'method': 'POST',
  'url': hostname.concat("/oauth/update_profile_native"),
  'headers': {
    'Content-Type': 'application/x-www-form-urlencoded'
  },
  form: {
    'access_token': '9ss59djxyp6b6zdj',
    'client_id': 'ghbx62uayrm74nyp2nzb7hvmfjf2zmqy',
    'flow': 'test-flow',
    'flow_version': '20210406175001388696',
    'locale': 'en-US',
    'form': 'editProfileForm',
    'firstName': 'Matthew'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

```

```python Python
hostname="https://se-demos-gstemp.us-dev.janraincapture.com"

import requests

url = hostname + "/oauth/update_profile_native"

payload='access_token=9ss59djxyp6b6zdj&client_id=ghbx62uayrm74nyp2nzb7hvmfjf2zmqy&flow=test-flow&flow_version=20210406175001388696&locale=en-US&form=editProfileForm&firstName=Matthew'
headers = {
  'Content-Type': 'application/x-www-form-urlencoded'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```json Response Example
{
  "stat": "ok"
}
```

# Get your Identity Cloud hostname

<!-- shell@1 -->
<!-- node@1 -->
<!-- python@1 -->

Your Identity Cloud hostname can be found on the **Manage Application** page in Console next to the label **Registration Domain(s)**.

# Configure the content type

<!-- shell@4 -->
<!-- node@8 -->
<!-- python@9 -->

Set the **Content-Type** header to **application/x-www-form-urlencoded**. This causes request data to be sent as a single URL encoded string.

# Provide the Identity Cloud access token

<!-- shell@5 -->
<!-- node@11 -->
<!-- python@7 -->

Use the <a href="https://techdocs.akamai.com/identity-cloud-auth/reference/post-access-getaccesstoken" target = "_blank">/getAccessToken</a> operation to return an access token for a user.

# Configure the client ID

<!-- shell@6 -->
<!-- node@12 -->
<!-- python@7 -->

Unique identifier of the API client used for the login and registration experience. This client needs to have the **login_client** feature.

# Configure the flow

<!-- shell@7 -->
<!-- node@13 -->
<!-- python@7 -->

Name of the flow used for the login and registration experience.

# Configure the flow version

<!-- shell@8 -->
<!-- node@14 -->
<!-- python@7 -->

Version number of the flow. Note that you can't set the flow version to **HEAD**, a shorthand way of referring to the latest version of the flow.

# Configure the locale

<!-- shell@9 -->
<!-- node@15 -->
<!-- python@7 -->

ISO language code for the locale. See <a href="https://techdocs.akamai.com/identity-cloud/docs/hosted-login-supported-languages-and-locales-1" target="_blank">Supported languages</a> and locales for a list of ISO codes that can be used with the Identity Cloud.

# Configure the user profile form

<!-- shell@10 -->
<!-- node@16 -->
<!-- python@7 -->

Form used for updating a user profile. Use the <a href = "https://techdocs.akamai.com/identity-cloud-config/reference/get-forms" target = "_blank">/forms</a> operation to return the names of your forms.

# Provide an updated value for a user profile field

<!-- shell@11 -->
<!-- node@17 -->
<!-- python@7 -->

Profile updates are made by specifying the name of the field being updated followed by the new value for that field. In this example. the **firstName** field is being changed to **Matthew**.  Be sure to use _field_ names with this operation. Don't use attribute names.

# Call the API

<!-- shell@3 -->
<!-- node@20-23 -->
<!-- python@12 -->

Use the POST method to write the changes to the user profile.

# Review the response



If successful, the API response consists of the HTTP status code **200 OK**.