---
title: "Update IAM Role"
method: PUT
path: "/iam-role/{id}"
tags: ["role"]
---

# Update IAM Role

`PUT /iam-role/{id}`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/iam-role/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/iam-role/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `description` string: IAM Role description
  - `permissions` string[]: IAM Role permissions
  - `labels` Labels
  - `max-session-ttl` integer: Maximum TTL requester is allowed to ask for when assuming a role
  - `assume-role-policy` IamAssumeRolePolicy: Assume Role Policy
    - `rules` IamServicePolicyRule[]: IAM Assume Role Policy rules
      - `action` 'allow' | 'deny'
      - `expression` string
      - `resources` string[]

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2026-11-06** `63da6f74c845`: 1 info
  - added the new optional request property `assume-role-policy`
- **2026-03-16** `e05707a7b346`: 3 info
  - api tag `role` added
  - api tag `iam` removed
  - added the new optional request property `max-session-ttl`
- **2025-05-22** `37a05010e8b4`: 1 info
  - added the new `reset-iam-organization-policy` enum value to the request property `permissions/items/`
- **2023-12-08** `ec6a2a6bc1c1`: 1 breaking, 1 warning
  - the `description` request property's minLength was increased from `0` to `1`
  - the `description` request property's maxLength was set to `255`
- **2023-06-06** `cf7b08181585`: 1 info
  - added the new optional request property `permissions`

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/iam-role/:id/put.md)

---

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