# Update Credential

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /browser/credentials:
    put:
      summary: Update Credential
      deprecated: false
      description: >-
        Update an existing credential configuration. This allows you to modify
        stored authentication data while maintaining the same credential
        identifier.
      operationId: TeamCredentialController_update
      tags:
        - Scraping Browser/TeamCredentials
        - TeamCredentials
      parameters:
        - name: x-api-token
          in: header
          description: API key for authentication
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTeamCredentialDto'
            examples:
              basic:
                value:
                  origin: https://example.com
                  namespace: production
                  metadata:
                    username: new_admin_user
                    password: new_secure_password_456
                    api_key: sk_test_xyz789
                summary: Update existing credentials
      responses:
        '200':
          description: Credential updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    examples:
                      - true
                x-apidog-orders:
                  - success
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: Scraping Browser/TeamCredentials
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/745098/apis/api-23850716-run
components:
  schemas:
    UpdateTeamCredentialDto:
      type: object
      properties:
        origin:
          type: string
          description: The origin URL (domain) for which these credentials apply
          examples:
            - https://example.com
        namespace:
          type: string
          description: >-
            Optional namespace for credential organization (e.g., 'production',
            'staging', 'development')
          examples:
            - production
        metadata:
          type: object
          description: Updated credential metadata containing authentication data
          properties: {}
          x-apidog-orders: []
          examples:
            - username: new_admin_user
              password: new_secure_password_456
              api_key: sk_test_xyz789
          x-apidog-ignore-properties: []
      required:
        - origin
        - metadata
      x-apidog-orders:
        - origin
        - namespace
        - metadata
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearer:
      type: bearer
      scheme: bearer
      description: Bearer token authentication using your Scrapeless API key
    apikey-header-x-api-token:
      type: apiKey
      in: header
      name: x-api-token
servers:
  - url: https://api.scrapeless.com
    description: Prod Env
security:
  - apikey-header-x-api-token: []

```
