---
title: "POST /accounts/{AwsAccountId}/ip-restriction"
method: POST
path: "/accounts/{AwsAccountId}/ip-restriction"
---

# POST /accounts/{AwsAccountId}/ip-restriction

`POST /accounts/{AwsAccountId}/ip-restriction`

Updates the content and status of IP rules. To use this operation, you need to provide the entire map of rules. You can use the <code>DescribeIpRestriction</code> operation to get the current rule map.

## Path parameters

- `AwsAccountId` string, required

## Request body

- object
  - `IpRestrictionRuleMap` object — A map that describes the updated IP rules with CIDR ranges and descriptions.
  - `Enabled` boolean — A value that specifies whether IP rules are turned on.

## Response `200`

Success

- UpdateIpRestrictionResponse
  - `AwsAccountId` string — The ID of the Amazon Web Services account that contains the IP rules.
  - `RequestId` string — The Amazon Web Services request ID for this operation.
  - `Status` integer — The HTTP status of the request.

## Other responses

- `480` — LimitExceededException
- `481` — AccessDeniedException
- `482` — InvalidParameterValueException
- `483` — ThrottlingException
- `484` — ResourceNotFoundException
- `485` — InternalFailureException

---

[API](https://skmtc.net/aws/apis/quicksight.md) · [All operations](https://skmtc.net/aws/apis/quicksight/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/quicksight/versions/2f2bbd7e70ca/schema)
