---
title: "Update Disabled State for Organizations"
method: POST
path: "/organizations/access/disablestate/update"
tags: ["Organizations"]
---

# Update Disabled State for Organizations

`POST /organizations/access/disablestate/update`

## Request

- Base URL: `https://api.velt.dev/v2`
- URL: `https://api.velt.dev/v2/organizations/access/disablestate/update`
- Auth: API key in header `x-velt-api-key` and API key in header `x-velt-auth-token`

Use this API to enable or disable both read and write access for all documents for all users.

Use case: Disable access when a customer's trial or subscription has ended.

## Request body

- object
  - `data` object, required
    - `organizationIds` string[], required: Array of Organization IDs
    - `disabled` boolean, required: Whether to disable read and write access

## Response `200`

Disabled state updated successfully

- SuccessResponse
  - `result` object
    - `status` 'success'
    - `message` string
    - `data` object: Response data specific to the operation

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/velt-js/apis/velt-rest-api.md) - [All operations](https://skmtc.dev/velt-js/apis/velt-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/velt-js/apis/velt-rest-api/revisions/0f5af15fa267?raw)
