> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://one.miles-api.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://one.miles-api.com/_mcp/server.

# Update

POST https://api.milescaira.com/v7/update
Content-Type: application/json

Partially update the profile + mapped answers; fan out side effects.

Reference: https://one.miles-api.com/api-reference/account-users/account/update-v-7-update-post

## Servers

- `https://api.milescaira.com` (Production, default)
- `https://miles-usp-backend-uat-2-154625965269.asia-south1.run.app` (UAT)
- `http://localhost:8080` (Local)

## Request

### Headers

- `authorization` (string, optional, nullable)

### Body (application/json)

This endpoint expects a ProfileUpdateIn.

- `first_name` (string, optional, nullable)
- `last_name` (string, optional, nullable)
- `name` (string, optional, nullable)
- `email` (string, optional, nullable)
- `country_code` (string, optional, nullable)
- `mobile` (string, optional, nullable)
- `city` (string, optional, nullable)
- `gender` (string, optional, nullable)
- `pathway` (string, optional, nullable)
- `tags` (string, optional, nullable)
- `professional` (string, optional, nullable)
- `experience` (string, optional, nullable)
- `education` (string, optional, nullable)
- `profile_picture` (string, optional, nullable)
- `image_url` (string, optional, nullable)
- `sub_answer` (list of any, optional, nullable)

## Response

### 200

Successful Response

- `map from string to any`

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### ValidationErrorLocItems

### ValidationErrorCtx

## Examples

**Request**

```json
{}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api.milescaira.com/v7/update"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.milescaira.com/v7/update"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.milescaira.com/v7/update")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```