---
title: "PATCH /networks/{networkId}/data-retention-bots"
method: PATCH
path: "/networks/{networkId}/data-retention-bots"
---

# PATCH /networks/{networkId}/data-retention-bots

`PATCH /networks/{networkId}/data-retention-bots`

Updates the data retention bot settings, allowing you to enable or disable the data retention service, or acknowledge the public key message.

## Path parameters

- `networkId` string, required

## Request body

- object
  - `actionType` 'ENABLE' | 'DISABLE' | 'PUBKEY_MSG_ACK', required — The action to perform. Valid values are 'ENABLE' (to enable the data retention service), 'DISABLE' (to disable the service), or 'PUBKEY_MSG_ACK' (to acknowledge the public key message).

## Response `200`

Success

- UpdateDataRetentionResponse
  - `message` string — A message indicating the result of the update operation.

## Other responses

- `480` — ValidationError
- `481` — BadRequestError
- `482` — ResourceNotFoundError
- `483` — ForbiddenError
- `484` — UnauthorizedError
- `485` — InternalServerError
- `486` — RateLimitError

---

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