Deactivate an organization
Deactivates an organization, preventing it from being used for new studies or user assignments. Existing data is preserved and the organization can be reactivated later.
Path Parameters
Unique organization identifier. Format: org_{32-hex-chars}
Returns
Timestamp when the organization was created
Whether the organization is currently active
Unique organization identifier. Format: org_{32-hex-chars}
Name of the organization
Timestamp when the organization was last updated
Number of users currently in this organization
UUID of the API key used to create this organization, for audit tracking
User ID who created this organization via dashboard, null if created via API key
Custom key-value metadata for the organization. Maximum 50 pairs, keys up to 100 chars, values up to 1000 chars
Deactivate an organization
curl https://api.avarasoftware.com/v1/orgs/$ORG_ID/deactivate \
-X POST \
-H "Authorization: Bearer $AVARA_API_KEY"
{
"createdAt": "2024-01-15T09:00:00Z",
"isActive": true,
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center - Radiology Department",
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}
Returns Examples
{
"createdAt": "2024-01-15T09:00:00Z",
"isActive": true,
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center - Radiology Department",
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}