curl -X PATCH "https://app.usatimbre.com/api/organizations/org_123456" \
-H "Authorization: Bearer tmb_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Organization Name",
"description": "Updated description"
}'
const response = await fetch('https://app.usatimbre.com/api/organizations/org_123456', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer tmb_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Updated Organization Name',
description: 'Updated description'
})
});
const organization = await response.json();
import requests
response = requests.patch(
'https://app.usatimbre.com/api/organizations/org_123456',
headers={
'Authorization': 'Bearer tmb_your_api_key_here',
'Content-Type': 'application/json'
},
json={
'name': 'Updated Organization Name',
'description': 'Updated description'
}
)
organization = response.json()
{
"id": "org_123456",
"name": "Updated Organization Name",
"description": "Updated description",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-21T09:00:00Z",
"feature_flags": {
"bulk_invoicing": true,
"advanced_reporting": true
}
}
{
"error": "Bad Request",
"message": "Invalid request body"
}
Gestión de Organizaciones
Update Organization
Update organization details
PATCH
/
api
/
organizations
/
{org_id}
curl -X PATCH "https://app.usatimbre.com/api/organizations/org_123456" \
-H "Authorization: Bearer tmb_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Organization Name",
"description": "Updated description"
}'
const response = await fetch('https://app.usatimbre.com/api/organizations/org_123456', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer tmb_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Updated Organization Name',
description: 'Updated description'
})
});
const organization = await response.json();
import requests
response = requests.patch(
'https://app.usatimbre.com/api/organizations/org_123456',
headers={
'Authorization': 'Bearer tmb_your_api_key_here',
'Content-Type': 'application/json'
},
json={
'name': 'Updated Organization Name',
'description': 'Updated description'
}
)
organization = response.json()
{
"id": "org_123456",
"name": "Updated Organization Name",
"description": "Updated description",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-21T09:00:00Z",
"feature_flags": {
"bulk_invoicing": true,
"advanced_reporting": true
}
}
{
"error": "Bad Request",
"message": "Invalid request body"
}
Overview
Update organization information such as name and description.Path Parameters
string
required
The unique identifier of the organization
Request Body
string
Updated organization name
string
Updated organization description
Response
Returns the updated organization object.string
Unique organization identifier
string
Updated organization name
string
Updated organization description
string
ISO 8601 timestamp of the update
curl -X PATCH "https://app.usatimbre.com/api/organizations/org_123456" \
-H "Authorization: Bearer tmb_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Organization Name",
"description": "Updated description"
}'
const response = await fetch('https://app.usatimbre.com/api/organizations/org_123456', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer tmb_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Updated Organization Name',
description: 'Updated description'
})
});
const organization = await response.json();
import requests
response = requests.patch(
'https://app.usatimbre.com/api/organizations/org_123456',
headers={
'Authorization': 'Bearer tmb_your_api_key_here',
'Content-Type': 'application/json'
},
json={
'name': 'Updated Organization Name',
'description': 'Updated description'
}
)
organization = response.json()
{
"id": "org_123456",
"name": "Updated Organization Name",
"description": "Updated description",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-21T09:00:00Z",
"feature_flags": {
"bulk_invoicing": true,
"advanced_reporting": true
}
}
{
"error": "Bad Request",
"message": "Invalid request body"
}
⌘I