Update organization
Updates an existing organization by replacing all fields. This is a full update operation - all fields must be provided, even if you only want to change a few values.
When to use: Use this endpoint when you want to update multiple fields or replace the entire organization data. For partial updates (changing only specific fields), use PATCH /organizations/ instead.
Required fields: All fields that are required for creation must be provided:
- name: Full company name
- type: Organization type
- color: Hex color code
Optional fields: All other fields can be provided or omitted (will be set to null/undefined if omitted).
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
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/jsonaddressCitystringaddressCountrystringaddressHouseNumberstringaddressStreetstringaddressZipstringbaseInvoiceInterestnumbercolorstringrequiredcreateProjectbooleancustomFieldsobjectemailstringenableInvoiceInterestbooleanenableInvoiceReminderFeebooleanfaxNumberstringhourRatenumbericonstringinvoiceDueDaysnumberinvoiceInterestnumberinvoiceLanguagestringinvoiceReminderFeenumberlegalFormstringlogoIdstringnamestringrequiredparentOrganizationIdstringphoneNumberstringprojectDocumentDefaultContactUserIdstringprojectDocumentEnableTocbooleanprojectDocumentHeadingStylestringprojectDocumentTitlePagebooleanregistrationCourtstringregistrationNumberstringshortDescriptionstringshortNamestringstartOfCollaborationstring<date>tagsstring[]taxNumberstringtypestringrequiredCustomerProspectTargetPartnerSupplierServiceProviderInvestorCompetitorGovernmentAgencyEducationalInstitutionwebsitestringaddressCityobjectaddressCountryobjectaddressHouseNumberobjectaddressStreetobjectaddressZipobjectbaseInvoiceInterestobjectcolorstringrequiredcreatedAtstringrequiredcustomFieldsobjectemailobjectenableInvoiceInterestobjectenableInvoiceReminderFeeobjectfaxNumberobjecthourRateobjecticonobjectidstringrequiredinvoiceDueDaysobjectinvoiceInterestobjectinvoiceLanguageobjectinvoiceReminderFeeobjectisActivebooleanrequiredlegalFormobjectlogoUrlobjectnamestringrequiredparentOrganizationIdobjectparentOrganizationNameobjectphoneNumberobjectprojectDocumentDefaultContactUserIdobjectprojectDocumentEnableTocobjectprojectDocumentHeadingStyleobjectprojectDocumentTitlePageobjectregistrationCourtobjectregistrationNumberobjectshortDescriptionobjectshortNameobjectstartOfCollaborationstring<date>tagsstring[]taxNumberobjecttypestringrequiredCustomerProspectTargetPartnerSupplierServiceProviderInvestorCompetitorGovernmentAgencyEducationalInstitutionupdatedAtstringrequiredwebsiteobjectcurl -X PUT "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: "PUT",
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.put(
"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"
}