---
title: "update organization settings"
method: PUT
path: "/api/v1/organizations/settings"
tags: ["api/v1/organizations"]
---

# update organization settings

`PUT /api/v1/organizations/settings`

#### Controller: 

`github.com/raghavyuva/nixopus-api/internal/features/organization/controller.(*OrganizationsController).UpdateOrganizationSettings`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func1`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func1`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func3`

---

## Headers

- `Accept` string

## Response `200`

OK

- OrganizationSettingsResponse — OrganizationSettingsResponse schema
  - `data` object, nullable
    - `created_at` string, date-time
    - `id` unknown
    - `organization` object, nullable
      - `created_at` string, date-time
      - `deleted_at` string, date-time, nullable
      - `description` string
      - `id` unknown
      - `name` string
      - `updated_at` string, date-time
      - `users` User[]
        - `avatar` string
        - `created_at` string, date-time
        - `deleted_at` string, date-time, nullable
        - `email` string
        - `id` unknown
        - `is_verified` boolean
        - `organization_users` object[]
          - `created_at` string, date-time
          - `deleted_at` string, date-time, nullable
          - `id` unknown
          - `organization` object, nullable
            - `created_at` string, date-time
            - `deleted_at` string, date-time, nullable
            - `description` string
            - `id` unknown
            - `name` string
            - `updated_at` string, date-time
            - `users` User[]
          - `organization_id` unknown
          - `updated_at` string, date-time
          - `user` User — recursive
          - `user_id` unknown
        - `organizations` object[]
          - `created_at` string, date-time
          - `deleted_at` string, date-time, nullable
          - `description` string
          - `id` unknown
          - `name` string
          - `updated_at` string, date-time
          - `users` User[]
        - `supertokens_user_id` string
        - `two_factor_enabled` boolean
        - `two_factor_secret` string
        - `type` string
        - `updated_at` string, date-time
        - `username` string
    - `organization_id` unknown
    - `settings` object
      - `api_retry_attempts` integer
      - `audit_logs_cleanup_enabled` boolean, nullable
      - `audit_logs_retention_days` integer, nullable
      - `container_auto_prune_build_cache` boolean, nullable
      - `container_auto_prune_dangling_images` boolean, nullable
      - `container_default_restart_policy` string, nullable
      - `container_log_tail_lines` integer, nullable
      - `container_stop_timeout` integer, nullable
      - `deployment_logs_cleanup_enabled` boolean, nullable
      - `deployment_logs_retention_days` integer, nullable
      - `disable_api_cache` boolean
      - `extension_logs_cleanup_enabled` boolean, nullable
      - `extension_logs_retention_days` integer, nullable
      - `websocket_reconnect_attempts` integer
      - `websocket_reconnect_interval` integer
    - `updated_at` string, date-time
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/nixopus/apis/openapi.md) · [All operations](https://skmtc.dev/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nixopus/openapi/revisions/fbe4892de50e/schema)
