---
title: "POST /api/v3/accounts/{account_id}/ip-restrictions-set/"
method: POST
path: "/api/v3/accounts/{account_id}/ip-restrictions-set/"
tags: ["IP Restriction Endpoints"]
---

# POST /api/v3/accounts/{account_id}/ip-restrictions-set/

`POST /api/v3/accounts/{account_id}/ip-restrictions-set/`

## Request

- Base URL: `https://cloud.getdbt.com`
- URL: `https://cloud.getdbt.com/api/v3/accounts/{account_id}/ip-restrictions-set/`
- Auth: HTTP bearer

Toggle the enablement of the IP restriction feature.

## Path parameters

- `account_id` integer, required

## Request body

- IPRestrictionSetRequestRequest
  - `enabled` boolean, required

## Response `200`

- IPRestrictionRuleSetEnveloped
  - `data` IPRestrictionRuleSetResponse, required
    - `id` integer, required
    - `account_id` integer
    - `enabled` boolean
    - `state` integer: A value of 1 means this entity is active and a value of 2 means this entity is deleted
    - `enabled_for_service_tokens` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `status` ResponseStatus, required
    - `code` integer: HTTP status code
    - `is_success` boolean, required: Whether the request was successful or not
    - `user_message` string, required: End-user friendly success or error message
    - `developer_message` string, required: Developer friendly success or error message

## Changes

- **2026-10-06** (v3) `7d5c1b4c8d8a`: 1 breaking
  - for the `path` request parameter `account_id`, the format changed from no format to `int64`

[Operation history](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/changes/api/v3/accounts/:account_id/ip-restrictions-set/post.md)

---

[API](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2.md) - [All operations](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/getdbt/apis/dbt-cloud-api-v2/revisions/2448b375ac2f?raw)
