---
title: "Save how the organization signs in to AWS"
method: PUT
path: "/v1/managed-deployments/aws-sign-in"
tags: ["Managed deployments"]
---

# Save how the organization signs in to AWS

`PUT /v1/managed-deployments/aws-sign-in`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/managed-deployments/aws-sign-in`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Saves the organization's AWS access portal URL and optional role to open the console with, or removes them with awsSignIn null. Without a saved role, the portal asks the person to choose one. While saved, every AWS link (approval link, CloudShell, CloudFormation stack) opens through the portal in the deployment's own account, so an approver lands signed in to the right account. Only AWS-hosted access portal addresses are accepted.

## Request body

- object
  - `awsSignIn` object, nullable, required
    - `portalUrl` string, required
    - `roleName` string, nullable

## Response `200`

Save how the organization signs in to AWS

- object
  - `awsSignIn` object, nullable, required
    - `portalUrl` string, required
    - `roleName` string, nullable

## Other responses

- `400`: Invalid input.
- `401`: Authentication required.
- `403`: Owner or super-admin approval required.
- `404`: Deployment or feature unavailable.
- `409`: The deployment cannot accept this operation now.
- `429`: Too many attempts.
- `503`: No installer release is configured.

## Changes

- **2026-11-19** `a2fad053533a`: 2 breaking, 4 info
  - the response property `awsSignIn/anyOf[subschema #1]/roleName` became optional for the status `200`
  - response property `awsSignIn/anyOf[subschema #1]/roleName` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - the request property `awsSignIn/anyOf[subschema #1]/roleName` became optional
  - request property `awsSignIn/anyOf[subschema #1]/roleName` list-of-types was widened by adding types `null` to media type `application/json`
  - …2 more
- **2026-11-18** `dcd11df289d2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/managed-deployments/aws-sign-in/put.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
