---
title: "Update IA settings"
method: PUT
path: "/2/drive/{drive_id}/settings/ai"
tags: ["Drive > Settings"]
---

# Update IA settings

`PUT /2/drive/{drive_id}/settings/ai`

## Path parameters

- `drive_id` integer, required

## Request body

- object
  - `has_approved` boolean — If the `User` consents to the AI scan.
  - `has_approved_ai_categories` boolean — If the `User` consents to automatic `Categories` on `Files`.
  - `has_approved_content_search` boolean — If the `User` consents to search in `Files` contents.

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `417` — Response
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
