---
title: "Update a registry"
method: PATCH
path: "/api/v2/sandboxes/registries/{name}"
tags: ["sandboxes"]
---

# Update a registry

`PATCH /api/v2/sandboxes/registries/{name}`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v2/sandboxes/registries/{name}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Update a sandbox registry's name and/or credentials.

## Path parameters

- `name` string, required

## Request body

- SandboxesUpdateRegistryPayload
  - `auth_type` 'DOCKER_CONFIG' | 'AWS_ROLE'
  - `aws_role_arn` string
  - `name` string
  - `password` string
  - `url` string
  - `username` string

## Response `200`

OK

- SandboxesRegistryResponse
  - `auth_type` 'DOCKER_CONFIG' | 'AWS_ROLE'
  - `aws_role_arn` string
  - `created_at` string
  - `created_by` string
  - `id` string
  - `name` string
  - `provider` 'DOCKER_REGISTRY' | 'HARBOR' | 'GHCR' | 'ECR' | 'GAR' | 'DOCKER_HUB'
  - `repository_search_mode` 'GLOBAL' | 'SCOPED' | 'NONE'
  - `updated_at` string
  - `updated_by` string
  - `url` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `501`: AWS IAM role authentication is not configured

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/sandboxes/registries/:name/patch.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
