> Markdown version of https://tuna.am/en/docs/api/ip-policy-edit/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Update an IP policy

post`/v1/team/ip_policies/{id}`

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Path Parameters

* **id** integer\<int64>required

### Request body

application/json

* **active**boolean

  Status

  **description**string

  Description

  **Example:&#x20;**`Office-only access`

  **name**string

  Name

  **Example:&#x20;**`Office allowlist`

### Response

200application/json

* **active**boolean

  Status

  **allow_rules**integer\<int64>

  Number of allow rules

  **Example:&#x20;**`5`

  **created_at**string\<date-time>

  Creation date

  **deny_rules**integer\<int64>

  Number of deny rules

  **Example:&#x20;**`3`

  **description**string

  Description

  **Example:&#x20;**`Office-only access`

  **id**integer\<int64>

  IP policy ID

  **Example:&#x20;**`42`

  **name**string

  Name

  **Example:&#x20;**`Office allowlist`

  **owner** object

  **active**boolean

  Active flag

  **avatar_url**string

  Avatar

  **Example:&#x20;**`https://www.gravatar.com/avatar/00000000000000000000000000000000`

  **email**string

  Email

  **Example:&#x20;**`jane@example.com`

  **id**integer\<int64>

  Identifier

  **Example:&#x20;**`42`

  **name**string

  Name

  **Example:&#x20;**`Jane Doe`

  **role**string

  Role

  **Possible values:** \[`primary_owner`, `owner`, `admin`, `member`]

  **Example:&#x20;**`member`

  **provisioned_by**string

  What created or modified the object: terraform means the Terraform provider, empty means another client

  **updated_at**string\<date-time>

  Update date
