> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-toolre-1772123259-dfebfdb.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a Registry

> Update a registry's display name and/or credentials.

You can update:
- **name**: New display name (must be unique within the organization)
- **url**, **username**, **password**: New credentials (all three must be
  provided together)



## OpenAPI

````yaml https://api.host.langchain.com/openapi.json patch /v2/sandboxes/registries/{name}
openapi: 3.1.0
info:
  title: LangSmith Deployment Control Plane API
  description: >
    The LangSmith Deployment Control Plane API is used to programmatically
    create and manage

    Agent Server deployments. For example, the APIs can be orchestrated to

    create custom CI/CD workflows.


    ## Host

    https://api.host.langchain.com


    ## Authentication

    To authenticate with the LangSmith Deployment Control Plane API, set the
    `X-Api-Key` header

    to a valid [LangSmith API
    key](https://docs.langchain.com/langsmith/create-account-api-key#create-an-api-key).


    ## Versioning

    Each endpoint path is prefixed with a version (e.g. `v1`, `v2`).


    ## Quick Start

    1. Call `POST /v2/deployments` to create a new Deployment. The response body
    contains the Deployment ID (`id`) and the ID of the latest (and first)
    revision (`latest_revision_id`).

    1. Call `GET /v2/deployments/{deployment_id}` to retrieve the Deployment.
    Set `deployment_id` in the URL to the value of Deployment ID (`id`).

    1. Poll for revision `status` until `status` is `DEPLOYED` by calling `GET
    /v2/deployments/{deployment_id}/revisions/{latest_revision_id}`.

    1. Call `PATCH /v2/deployments/{deployment_id}` to update the deployment.
  version: 0.1.0
servers: []
security: []
paths:
  /v2/sandboxes/registries/{name}:
    patch:
      tags:
        - Sandboxes (v2)
      summary: Update a Registry
      description: >-
        Update a registry's display name and/or credentials.


        You can update:

        - **name**: New display name (must be unique within the organization)

        - **url**, **username**, **password**: New credentials (all three must
        be
          provided together)
      operationId: update_registry_v2_sandboxes_registries__name__patch
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            description: Registry name
            title: Name
          description: Registry name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegistryUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegistryResponse'
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail:
                  error: NotFound
                  message: Resource not found.
        '409':
          description: Conflict - Name already in use
          content:
            application/json:
              example:
                detail:
                  error: Conflict
                  message: Registry 'new-name' already exists
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - API Key: []
        - Tenant ID: []
        - Bearer Auth: []
components:
  schemas:
    RegistryUpdate:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: >-
            New display name for the registry (max 63 chars, DNS-1035 format).
            Must be unique within the organization.
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: New registry URL
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
          description: New username for authenticating with the registry
        password:
          anyOf:
            - type: string
            - type: 'null'
          title: Password
          description: New password or access token for authenticating with the registry
      type: object
      title: RegistryUpdate
      description: |-
        Request model for updating a private container registry.

        You can update the display name alone, or update credentials
        (url + username + password must all be provided together).
    RegistryResponse:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
          description: Unique registry identifier
        name:
          type: string
          title: Name
        url:
          type: string
          title: Url
          description: Primary registry URL extracted from docker config
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - name
        - url
      title: RegistryResponse
      description: |-
        Response model for a private container registry.

        Credentials are never included in responses.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````