Skip to content

Update organization

PATCH
/v1/organization
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.

Organization update data

Media typeapplication/json
object
name

Organization name

string

Example

New Acme Corporation
slug

Organization slug

string

Example

new-acme-corp
logo

Organization logo URL

string

Example

https://example.com/logo.png
metadata

Additional metadata in JSON format

string

Example

{"theme": "dark", "preferences": {}}
website

Organization website URL

string

Example

https://acme-corp.com
onboardingCompleted

Whether onboarding is completed

boolean

Example

true
fleetDmLabelId

FleetDM label ID for device management

integer

Example

123
isFleetSetupCompleted

Whether FleetDM setup is completed

boolean

Example

false
primaryColor

Organization primary color in hex format

string

Example

#3B82F6
advancedModeEnabled

Whether advanced mode is enabled for the organization

boolean

Example

false
backgroundCheckStepEnabled

Whether the background-check step is required during member onboarding. Set to false to turn off the “Require background checks” setting; true to require it.

boolean

Example

true
evidenceApprovalEnabled

Whether evidence requires approval before it is accepted.

boolean

Example

false
deviceAgentStepEnabled

Whether the device-agent step is enabled during member onboarding.

boolean

Example

true
securityTrainingStepEnabled

Whether the security-training step is enabled during member onboarding.

boolean

Example

true
whistleblowerReportEnabled

Whether the whistleblower reporting feature is enabled.

boolean

Example

true
accessRequestFormEnabled

Whether the trust-portal access request form is enabled.

boolean

Example

true

Organization updated successfully

Media typeapplication/json
object
id

The organization ID

string
name

Organization name

string
slug

Organization slug

string
logo

Organization logo URL

string
nullable
metadata

Additional metadata in JSON format

string
nullable
website

Organization website URL

string
nullable
onboardingCompleted

Whether onboarding is completed

boolean
hasAccess

Whether organization has access to the platform

boolean
fleetDmLabelId

FleetDM label ID for device management

integer
nullable
isFleetSetupCompleted

Whether FleetDM setup is completed

boolean
primaryColor

Organization primary color in hex format

string
nullable
createdAt

When the organization was created

string format: date-time
authType

How the request was authenticated

string
Allowed values: api-key session

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

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid slug format"
}

Unauthorized - Invalid authentication or insufficient permissions

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid or expired API key"
}

Organization not found

Media typeapplication/json
object
message
string

Example

{
"message": "Organization with ID org_abc123def456 not found"
}