> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usatimbre.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Profile

> Update profile fields

## Overview

Update profile information. You can update the name, phone number, and email fields.

## Path Parameters

<ParamField path="rfc" type="string" required>
  The RFC (Mexican tax ID) or UUID of the profile to update
</ParamField>

## Request Body

<ParamField body="name" type="string">
  Updated name for the profile
</ParamField>

<ParamField body="phone_number" type="string">
  Updated phone number. Should include country code (e.g., `+525512345678`)
</ParamField>

<ParamField body="email" type="string">
  Updated email address
</ParamField>

## Response

Returns the updated profile object.

<ResponseField name="id" type="string">
  Unique profile identifier (UUID)
</ResponseField>

<ResponseField name="name" type="string">
  Updated profile name
</ResponseField>

<ResponseField name="email" type="string">
  Updated email address
</ResponseField>

<ResponseField name="phone_number" type="string">
  Updated phone number
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp of the update
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://app.usatimbre.com/api/profile/XAXX010101000" \
    -H "Authorization: Bearer tmb_your_api_key_here" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Updated Name",
      "phone_number": "+525512345678",
      "email": "updated@example.com"
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://app.usatimbre.com/api/profile/XAXX010101000', {
    method: 'PATCH',
    headers: {
      'Authorization': 'Bearer tmb_your_api_key_here',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      name: 'Updated Name',
      phone_number: '+525512345678',
      email: 'updated@example.com'
    })
  });
  const profile = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.patch(
      'https://app.usatimbre.com/api/profile/XAXX010101000',
      headers={
          'Authorization': 'Bearer tmb_your_api_key_here',
          'Content-Type': 'application/json'
      },
      json={
          'name': 'Updated Name',
          'phone_number': '+525512345678',
          'email': 'updated@example.com'
      }
  )
  profile = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Updated Name",
    "email": "updated@example.com",
    "phone_number": "+525512345678",
    "org_id": "org_123456",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-21T09:00:00Z",
    "is_admin": false,
    "credits_remaining": 50
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Bad Request",
    "message": "Invalid email format"
  }
  ```
</ResponseExample>
