REST /api/v1/organizations/{organization_id}/feature-flags/initialization 3 endpoints
POST /api/v1/organizations/{organization_id}/feature-flags/initialization/api/v1/organizations/{organization_id}/feature-flags/initialization

Initialize feature flags for a new organization with defaults

Public

Request Example

{
  "organization_id": "org-fjord-kurstilbud"
}

Response Example

{
  "organization_id": "org-fjord-kurstilbud",
  "initialized": true,
  "flags_created": [
    {
      "flag_key": "travel_reimbursement",
      "enabled": false
    },
    {
      "flag_key": "course_administration",
      "enabled": true
    },
    {
      "flag_key": "certification",
      "enabled": false
    },
    {
      "flag_key": "encrypted_assignment_dispatch",
      "enabled": false
    }
  ],
  "initialized_at": "2026-03-26T11:00:00Z"
}
GET /api/v1/organizations/{organization_id}/feature-flags/initialization/api/v1/organizations/{organization_id}/feature-flags/initialization/defaults

Get the default flag values applied during initialization

Public

Response Example

{
  "defaults": {
    "travel_reimbursement": false,
    "course_administration": true,
    "certification": false,
    "encrypted_assignment_dispatch": false
  }
}
DELETE /api/v1/organizations/{organization_id}/feature-flags/initialization/api/v1/organizations/{organization_id}/feature-flags/initialization

Reset all feature flags for an organization back to defaults

Public

Response Example

{
  "organization_id": "org-fjord-kurstilbud",
  "reset": true,
  "flags_reset": 4,
  "reset_at": "2026-03-26T11:05:00Z"
}

Additional Metadata

{
  "contract_summary": {
    "total_contracts": 410,
    "total_endpoints": 2416,
    "api_styles_used": [
      "rest"
    ]
  },
  "generated_at": "2026-03-26T06:55:53.316Z"
}