---
title: "Anonymize series"
method: POST
path: "/series/{id}/anonymize"
tags: ["Series"]
---

# Anonymize series

`POST /series/{id}/anonymize`

Start a job that will anonymize all the DICOM instances within the series whose identifier is provided in the URL. The modified DICOM instances will be stored into a brand new series, whose Orthanc identifiers will be returned by the job. https://book.orthanc-server.com/users/anonymization.html#anonymization-of-patients-studies-or-series

## Path parameters

- `id` string, required

## Request body

- object
  - `Asynchronous` boolean — If `true`, run the job in asynchronous mode, which means that the REST API call will immediately return, reporting the identifier of a job. Prefer this flavor wherever possible.
  - `DicomVersion` string — Version of the DICOM standard to be used for anonymization. Check out configuration option `DeidentifyLogsDicomVersion` for possible values.
  - `Force` boolean — Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
  - `Keep` string[] — List of DICOM tags whose value must not be destroyed by the anonymization. Starting with Orthanc 1.9.4, paths to subsequences can be provided using the same syntax as the `dcmodify` command-line tool (wildcards are supported as well).
  - `KeepPrivateTags` boolean — Keep the private tags from the DICOM instances (defaults to `false`)
  - `KeepSource` boolean — If set to `false`, instructs Orthanc to the remove original resources. By default, the original resources are kept in Orthanc.
  - `Permissive` boolean — If `true`, ignore errors during the individual steps of the job.
  - `Priority` number — In asynchronous mode, the priority of the job. The lower the value, the higher the priority.
  - `PrivateCreator` string — The private creator to be used for private tags in `Replace`
  - `Remove` string[] — List of additional tags to be removed from the DICOM instances. Starting with Orthanc 1.9.4, paths to subsequences can be provided using the same syntax as the `dcmodify` command-line tool (wildcards are supported as well).
  - `Replace` object — Associative array to change the value of some DICOM tags in the DICOM instances. Starting with Orthanc 1.9.4, paths to subsequences can be provided using the same syntax as the `dcmodify` command-line tool (wildcards are supported as well).
  - `Synchronous` boolean — If `true`, run the job in synchronous mode, which means that the HTTP answer will directly contain the result of the job. This is the default, easy behavior, but it is *not* desirable for long jobs, as it might lead to network timeouts.
  - `Transcode` string — Transcode the DICOM instances to the provided DICOM transfer syntax: https://book.orthanc-server.com/faq/transcoding.html

## Response `200`

- object
  - `ID` string — In asynchronous mode, identifier of the job
  - `Path` string — In asynchronous mode, path to access the job in the REST API

---

[API](https://skmtc.net/orthancserver/apis/orthanc-server.md) · [All operations](https://skmtc.net/orthancserver/apis/orthanc-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orthancserver/orthanc-server/versions/af646f6f871b/schema)
