Update organization
const url = 'https://api.varman.io/v1/organization';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"New Acme Corporation","slug":"new-acme-corp","logo":"https://example.com/logo.png","metadata":"{\"theme\": \"dark\", \"preferences\": {}}","website":"https://acme-corp.com","onboardingCompleted":true,"fleetDmLabelId":123,"isFleetSetupCompleted":false,"primaryColor":"#3B82F6","advancedModeEnabled":false,"backgroundCheckStepEnabled":true,"evidenceApprovalEnabled":false,"deviceAgentStepEnabled":true,"securityTrainingStepEnabled":true,"whistleblowerReportEnabled":true,"accessRequestFormEnabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/organization \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "New Acme Corporation", "slug": "new-acme-corp", "logo": "https://example.com/logo.png", "metadata": "{\"theme\": \"dark\", \"preferences\": {}}", "website": "https://acme-corp.com", "onboardingCompleted": true, "fleetDmLabelId": 123, "isFleetSetupCompleted": false, "primaryColor": "#3B82F6", "advancedModeEnabled": false, "backgroundCheckStepEnabled": true, "evidenceApprovalEnabled": false, "deviceAgentStepEnabled": true, "securityTrainingStepEnabled": true, "whistleblowerReportEnabled": true, "accessRequestFormEnabled": true }'Partially updates the authenticated organization. Only provided fields will be updated.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Organization update data
object
Organization name
Example
New Acme CorporationOrganization slug
Example
new-acme-corpOrganization logo URL
Example
https://example.com/logo.pngAdditional metadata in JSON format
Example
{"theme": "dark", "preferences": {}}Organization website URL
Example
https://acme-corp.comWhether onboarding is completed
Example
trueFleetDM label ID for device management
Example
123Whether FleetDM setup is completed
Example
falseOrganization primary color in hex format
Example
#3B82F6Whether advanced mode is enabled for the organization
Example
falseWhether the background-check step is required during member onboarding. Set to false to turn off the “Require background checks” setting; true to require it.
Example
trueWhether evidence requires approval before it is accepted.
Example
falseWhether the device-agent step is enabled during member onboarding.
Example
trueWhether the security-training step is enabled during member onboarding.
Example
trueWhether the whistleblower reporting feature is enabled.
Example
trueWhether the trust-portal access request form is enabled.
Example
trueResponses
Section titled “Responses”Organization updated successfully
object
The organization ID
Organization name
Organization slug
Organization logo URL
Additional metadata in JSON format
Organization website URL
Whether onboarding is completed
Whether organization has access to the platform
FleetDM label ID for device management
Whether FleetDM setup is completed
Organization primary color in hex format
When the organization was created
How the request was authenticated
Example
{ "id": "org_abc123def456", "name": "New Acme Corporation", "slug": "new-acme-corp", "logo": "https://example.com/logo.png", "metadata": "{\"theme\": \"dark\", \"preferences\": {}}", "website": "https://acme-corp.com", "onboardingCompleted": true, "hasAccess": true, "fleetDmLabelId": 123, "isFleetSetupCompleted": false, "primaryColor": "#3B82F6", "authType": "api-key"}Bad Request - Invalid update data
object
Example
{ "message": "Invalid slug format"}Unauthorized - Invalid authentication or insufficient permissions
object
Example
{ "message": "Invalid or expired API key"}Organization not found
object
Example
{ "message": "Organization with ID org_abc123def456 not found"}