---
title: "Update a Managed Identity"
method: PUT
path: "/identities/{managedIdentityId}"
tags: ["identities"]
---

# Update a Managed Identity

`PUT /identities/{managedIdentityId}`

Update a Managed Identity identified by the given ID.

## Path parameters

- `managedIdentityId` integer, required

## Query parameters

- `orgId` integer

## Request body

- UpdateManagedIdentityRequest
  - `managedIdentity` ManagedIdentityDbDtoAbstractGridConfig
    - `config` AbstractGridConfig
      - `computeQueue` string
      - `discriminator` string — property to select the compute config platform
      - `environment` ConfigEnvVariable[]
        - `compute` boolean
        - `head` boolean
        - `name` string
        - `value` string
      - `headJobOptions` string
      - `headQueue` string
      - `hostName` string
      - `launchDir` string
      - `maxQueueSize` integer
      - `nextflowConfig` string
      - `port` integer
      - `postRunScript` string — Add a script that executes after all Nextflow processes have completed. See [Pre and post-run scripts](https://docs.seqera.io/platform-cloud/launch/advanced#pre-and-post-run-scripts).
      - `preRunScript` string — Add a script that executes in the nf-launch script prior to invoking Nextflow processes. See [Pre and post-run scripts](https://docs.seqera.io/platform-cloud/launch/advanced#pre-and-post-run-scripts).
      - `propagateHeadJobOptions` boolean
      - `userName` string
      - `workDir` string — Compute environment working directory
    - `id` integer
    - `name` string
    - `platform` 'altair-platform' | 'lsf-platform' | 'moab-platform' | 'slurm-platform' | 'uge-platform'

## Response `204`

OK - No content

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/versions/13316c9fe5ff/schema)
