Partially update organization
Partially updates an organization. Only the fields you provide will be updated; all other fields remain unchanged. This is the recommended way to update organizations when you only need to change specific fields.
When to use: Use this endpoint for partial updates (changing only specific fields). For full updates (replacing all fields), use PUT /organizations/ instead.
Available fields: All organization fields can be updated, including:
-
Basic info: name, shortName, icon, type, color, legalForm, description
-
Contact details: address fields, phone, fax, email, website
-
Legal info: taxNumber, registrationNumber, registrationCourt
-
Business: startOfCollaboration, isActive (via full update)
-
Invoice settings: hourRate, invoiceDueDays, reminder fees, interest rates, invoiceLanguage
-
Document settings: table of contents, title page, heading style, default contact
-
Custom data:
customFields, keyed by configured organization custom-field IDs; values must match each definition type and do not create native relationships or behavior
Updating the logo:
- Call POST /api/public/workspace/upload to upload the new logo file
- Use the returned file ID in the logoId field
- To remove the logo, set logoId to null
Behavior:
- Omitted fields remain unchanged
- Provided fields replace existing values
- Set fields to null to clear them (where allowed)
- Date fields should be provided in ISO format (YYYY-MM-DD)
What is returned: The complete updated organization object with all fields and computed values.
Note: This endpoint requires the Organizations.edit permission. The organization must exist in your workspace and not be deleted.
/organizations/{id}AuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredidstringrequiredfieldsToReturnstringresponseShapestringcompactfullLT-Response-Shapestringfullapplication/jsonaddressCitystringaddressCountrystringaddressHouseNumberstringaddressStreetstringaddressZipstringbaseInvoiceInterestnumbercolorstringcreateProjectbooleancustomFieldsobjectemailstringenableInvoiceInterestbooleanenableInvoiceReminderFeebooleanfaxNumberstringhourRatenumbericonstringinvoiceDueDaysnumberinvoiceInterestnumberinvoiceLanguagestringinvoiceReminderFeenumberlegalFormstringlogoIdstringnamestringparentOrganizationIdstringphoneNumberstringprojectDocumentDefaultContactUserIdstringprojectDocumentEnableTocbooleanprojectDocumentHeadingStylestringprojectDocumentTitlePagebooleanregistrationCourtstringregistrationNumberstringshortDescriptionstringshortNamestringstartOfCollaborationstring<date>tagsstring[]taxNumberstringtypestringCustomerProspectTargetPartnerSupplierServiceProviderInvestorCompetitorGovernmentAgencyEducationalInstitutionwebsitestringaddressCityobjectaddressCountryobjectaddressHouseNumberobjectaddressStreetobjectaddressZipobjectbaseInvoiceInterestobjectcolorstringrequiredcreatedAtstringrequiredcustomFieldsobjectemailobjectenableInvoiceInterestobjectenableInvoiceReminderFeeobjectfaxNumberobjecthourRateobjecticonobjectidstringrequiredinvoiceDueDaysobjectinvoiceInterestobjectinvoiceLanguageobjectinvoiceReminderFeeobjectisActivebooleanrequiredlegalFormobjectlogoUrlobjectnamestringrequiredparentOrganizationIdobjectparentOrganizationNameobjectphoneNumberobjectprojectDocumentDefaultContactUserIdobjectprojectDocumentEnableTocobjectprojectDocumentHeadingStyleobjectprojectDocumentTitlePageobjectregistrationCourtobjectregistrationNumberobjectshortDescriptionobjectshortNameobjectstartOfCollaborationstring<date>tagsstring[]taxNumberobjecttypestringrequiredCustomerProspectTargetPartnerSupplierServiceProviderInvestorCompetitorGovernmentAgencyEducationalInstitutionupdatedAtstringrequiredwebsiteobjectcurl -X PATCH "https://leadtime.app/api/public/organizations/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"addressCity": "New York",
"addressCountry": "USA",
"addressHouseNumber": "42A",
"addressStreet": "123 Main St",
"addressZip": "10001",
"baseInvoiceInterest": 3,
"color": "#FF5733",
"createProject": false,
"customFields": {
"customField1": "value1",
"customField2": 123
},
"email": "contact@acme.com",
"enableInvoiceInterest": false,
"enableInvoiceReminderFee": true,
"faxNumber": "+1234567891",
"hourRate": 150,
"icon": ":building:",
"invoiceDueDays": 30,
"invoiceInterest": 5,
"invoiceLanguage": "en",
"invoiceReminderFee": 5,
"legalForm": "GmbH",
"logoId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme Corporation",
"parentOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"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",
"website": "https://acme.com"
}'const response = await fetch("https://leadtime.app/api/public/organizations/string", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"addressCity": "New York",
"addressCountry": "USA",
"addressHouseNumber": "42A",
"addressStreet": "123 Main St",
"addressZip": "10001",
"baseInvoiceInterest": 3,
"color": "#FF5733",
"createProject": false,
"customFields": {
"customField1": "value1",
"customField2": 123
},
"email": "contact@acme.com",
"enableInvoiceInterest": false,
"enableInvoiceReminderFee": true,
"faxNumber": "+1234567891",
"hourRate": 150,
"icon": ":building:",
"invoiceDueDays": 30,
"invoiceInterest": 5,
"invoiceLanguage": "en",
"invoiceReminderFee": 5,
"legalForm": "GmbH",
"logoId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme Corporation",
"parentOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"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",
"website": "https://acme.com"
})
});import requests
response = requests.patch(
"https://leadtime.app/api/public/organizations/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"addressCity": "New York",
"addressCountry": "USA",
"addressHouseNumber": "42A",
"addressStreet": "123 Main St",
"addressZip": "10001",
"baseInvoiceInterest": 3,
"color": "#FF5733",
"createProject": False,
"customFields": {
"customField1": "value1",
"customField2": 123
},
"email": "contact@acme.com",
"enableInvoiceInterest": False,
"enableInvoiceReminderFee": True,
"faxNumber": "+1234567891",
"hourRate": 150,
"icon": ":building:",
"invoiceDueDays": 30,
"invoiceInterest": 5,
"invoiceLanguage": "en",
"invoiceReminderFee": 5,
"legalForm": "GmbH",
"logoId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme Corporation",
"parentOrganizationId": "123e4567-e89b-12d3-a456-426614174000",
"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",
"website": "https://acme.com"
},
){
"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"
}