---
title: "DEPRECATED. Update Administration"
method: PATCH
path: "/legal_entities/{legal_entity_id}/administrations/{id}"
tags: ["Administrations"]
---

# DEPRECATED. Update Administration

`PATCH /legal_entities/{legal_entity_id}/administrations/{id}`

## Request

- Base URL: `https://api.storecove.com/api/v2`
- URL: `https://api.storecove.com/api/v2/legal_entities/{legal_entity_id}/administrations/{id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/storecove/apis/storecove-api/docs/legal_entities/:legal_entity_id/administrations/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

DEPRECATED. Update an Administration

## Path parameters

- `legal_entity_id` integer, required
- `id` integer, required

## Request body

- AdministrationUpdate
  - `sender_email_identity_id` integer: The id of the SenderEmailIdentity. If not provided, the Storecove default sender will be used
  - `email` string: The email address to send the received document to
  - `packaging` 'ubl': How to package the purchase invoice.
  - `package_version` 'peppol_bis_v3' | 'aunz' | 'sg': The version of the package.

## Response `200`

Success

- Administration
  - `id` integer: The Storecove assigned id for the Administration.
  - `sender_email_identity_id` integer: The id of the SenderEmailIdentity. If not provided, the Storecove default sender will be used
  - `legal_entity_id` integer: The LegalEntity the Administration belongs to.
  - `email` string: The email address to send the received document to
  - `packaging` 'ubl': How to package the purchase invoice.
  - `package_version` 'peppol_bis_v3' | 'aunz' | 'sg': The version of the package.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2021-03-06** `0312ae5500d2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/storecove/apis/storecove-api/changes/legal_entities/:legal_entity_id/administrations/:id/patch.md)

---

[API](https://skmtc.dev/storecove/apis/storecove-api.md) - [All operations](https://skmtc.dev/storecove/apis/storecove-api/llms.txt) - [OpenAPI document](https://skmtc.dev/storecove/apis/storecove-api/revisions/18226354b6a5?raw)
