Update organization custom fields
Updates only the custom field values for an organization. This endpoint is optimized for updating custom fields without affecting other organization data.
Request body:
customFields: Object with custom field IDs as keys and their values- Keys should match custom field IDs configured in workspace settings
- Values must match the field type (string, number, boolean, date, etc.)
- Use the GET /administration/organization-settings/custom-fields endpoint to retrieve available custom fields
Example:
{
"customFields": {
"field-id-1": "Text value",
"field-id-2": 123,
"field-id-3": true,
"field-id-4": "2024-01-01"
}
}
Note: This endpoint requires the Organizations.edit permission. The organization must exist in your workspace and not be deleted.
PATCH
/organizations/{id}/custom-fieldsAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredQuery parameters
fieldsToReturnstringComma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestringAdvanced override. Omit for the endpoint compact default. Use full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:
compactfullHeader parameters
LT-Response-ShapestringAdvanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
Allowed:
fullRequest body
requiredapplication/jsoncustomFieldsobjectrequiredCustom field values as key-value pairs
Responses
200
addressCityobjectCity
addressCountryobjectCountry
addressHouseNumberobjectHouse number
addressStreetobjectStreet address
addressZipobjectZIP/Postal code
baseInvoiceInterestobjectBase invoice interest rate
colorstringrequiredOrganization color (hex code)
createdAtstringrequiredCreation timestamp
customFieldsobjectCustom field values as key-value pairs. Keys match custom field IDs configured in workspace settings. Values match the field type (string, number, boolean, date, etc.). Use the GET /administration/organization-settings/custom-fields endpoint to retrieve available custom fields.
emailobjectEmail address
enableInvoiceInterestobjectEnable invoice interest
enableInvoiceReminderFeeobjectEnable invoice reminder fee
faxNumberobjectFax number
hourRateobjectHourly rate
iconobjectIcon identifier
idstringrequiredOrganization ID
invoiceDueDaysobjectInvoice due days
invoiceInterestobjectInvoice interest rate
invoiceLanguageobjectInvoice language code
invoiceReminderFeeobjectInvoice reminder fee amount
isActivebooleanrequiredWhether organization is active
legalFormobjectLegal form
logoUrlobjectLogo URL (publicly accessible)
namestringrequiredOrganization name
parentOrganizationIdobjectParent organization ID (for hierarchical organization structure)
parentOrganizationNameobjectParent organization name
phoneNumberobjectPhone number
projectDocumentDefaultContactUserIdobjectDefault contact user ID for project documents
projectDocumentEnableTocobjectEnable table of contents in project documents
projectDocumentHeadingStyleobjectHeading style for project documents
projectDocumentTitlePageobjectShow title page in project documents
registrationCourtobjectRegistration court
registrationNumberobjectRegistration number
shortDescriptionobjectShort description
shortNameobjectShort identifier
startOfCollaborationstring<date>Start of collaboration date
tagsstring[]Array of tag UUIDs assigned to this organization. Tags enable cross-project organization and filtering.
taxNumberobjectTax identification number
typestringrequiredOrganization type
Allowed:
CustomerProspectTargetPartnerSupplierServiceProviderInvestorCompetitorGovernmentAgencyEducationalInstitutionupdatedAtstringrequiredLast update timestamp
websiteobjectWebsite URL
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X PATCH "https://leadtime.app/api/public/organizations/string/custom-fields" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"customFields": {}
}'const response = await fetch("https://leadtime.app/api/public/organizations/string/custom-fields", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"customFields": {}
})
});import requests
response = requests.patch(
"https://leadtime.app/api/public/organizations/string/custom-fields",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"customFields": {}
},
)Response
{
"addressCity": "New York",
"addressCountry": "USA",
"addressHouseNumber": "42A",
"addressStreet": "123 Main St",
"addressZip": "10001",
"baseInvoiceInterest": 3,
"color": "#FF5733",
"createdAt": "2024-01-01T00:00:00.000Z",
"customFields": {
"customField1": "value1",
"customField2": 123
},
"email": "contact@acme.com",
"enableInvoiceInterest": false,
"enableInvoiceReminderFee": true,
"faxNumber": "+1234567891",
"hourRate": 150,
"icon": "building",
"id": "123e4567-e89b-12d3-a456-426614174000",
"invoiceDueDays": 30,
"invoiceInterest": 5,
"invoiceLanguage": "en",
"invoiceReminderFee": 5,
"isActive": true,
"legalForm": "GmbH",
"logoUrl": "https://app.example.com/api/files/public/123e4567-e89b-12d3-a456-426614174000",
"name": "Acme Corporation",
"parentOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"parentOrganizationName": "B. Braun",
"phoneNumber": "+1234567890",
"projectDocumentDefaultContactUserId": "123e4567-e89b-12d3-a456-426614174000",
"projectDocumentEnableToc": true,
"projectDocumentHeadingStyle": "classic",
"projectDocumentTitlePage": true,
"registrationCourt": "Munich District Court",
"registrationNumber": "HRB 12345",
"shortDescription": "Leading software development company",
"shortName": "ACME",
"startOfCollaboration": "2024-01-01",
"tags": [
"123e4567-e89b-12d3-a456-426614174000",
"223e4567-e89b-12d3-a456-426614174001"
],
"taxNumber": "DE123456789",
"type": "Customer",
"updatedAt": "2024-01-15T12:30:00.000Z",
"website": "https://acme.com"
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions