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"
}'
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();
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()
{
"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
}
{
"error": "Bad Request",
"message": "Invalid email format"
}
Gestión de Perfiles
Update Profile
Update profile fields
PATCH
/
api
/
profile
/
{rfc}
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"
}'
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();
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()
{
"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
}
{
"error": "Bad Request",
"message": "Invalid email format"
}
Overview
Update profile information. You can update the name, phone number, and email fields.Path Parameters
string
required
The RFC (Mexican tax ID) or UUID of the profile to update
Request Body
string
Updated name for the profile
string
Updated phone number. Should include country code (e.g.,
+525512345678)string
Updated email address
Response
Returns the updated profile object.string
Unique profile identifier (UUID)
string
Updated profile name
string
Updated email address
string
Updated phone number
string
ISO 8601 timestamp of the update
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"
}'
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();
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()
{
"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
}
{
"error": "Bad Request",
"message": "Invalid email format"
}
⌘I