---
title: "Update Child Organization Contract"
method: PUT
path: "/v1/enterprise/account/{accountId}"
tags: ["Enterprise"]
---

# Update Child Organization Contract

`PUT /v1/enterprise/account/{accountId}`

Makes an update to the specified child organization. Used to modify the current retention with the `retention` field or the current owner with the `owner` field.

## Path parameters

- `accountId` string, required — Account number of the organization

## Request body

- EnterprisePut
  - `retention` integer — Current retention period selected for the child organization
  - `owner` string — The email of a user to be given owner privileges of an account.

## Response `200`

The account was found, the enterpriseId and retention details are updated.

- EnterpriseResource
  - `account` string — Account number of the organization
  - `enterprise` string — Unique Id of the enterprise organization
  - `retention` integer — Current retention period selected for the child organization
  - `owner` string — The email of a user to be given owner privileges of an account.
  - `retentionPeriods` Retention[] — Available log retention options for the child organization
  - `plan` string — The name of a plan.
  - `servicekey` string — A secret key which can be used to authenticate requests to Mezmo.

## Other responses

- `400` — Invalid body
- `404` — Unable to update account which not belong to enterprise
- `409` — Return error when account does not have contract tier

---

[API](https://skmtc.net/mezmo/apis/pipeline-api.md) · [All operations](https://skmtc.net/mezmo/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mezmo/pipeline-api/revisions/fb2535545d90/schema)
