> ## Documentation Index
> Fetch the complete documentation index at: https://api.skycoach.gg/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace all credentials (batch replace)

> Available only for offers with `credential_system_type_id = 3` (MULTIPLE / credential-mode).
     *
     * `credential_system_type_id` is the authoritative delivery-mode field. Values: 1 = No Credentials (manual delivery via chat),
     * 2 = Single (deprecated — coerced to MULTIPLE on write), 3 = Multiple.



## OpenAPI

````yaml /api-docs.json put /api/shop/marketplace/offers/{offerId}/credentials/replace_all
openapi: 3.0.0
info:
  title: Currency Marketplace API
  description: API documentation for Currency Marketplace
  version: 1.0.0
servers:
  - url: https://skycoach.gg/
    description: API Server
security: []
tags:
  - name: Currency Marketplace
    description: Currency Marketplace
  - name: Offers
    description: Offers
  - name: Offer Credentials
    description: Offer Credentials
paths:
  /api/shop/marketplace/offers/{offerId}/credentials/replace_all:
    put:
      tags:
        - Offer Credentials
      summary: Replace all credentials (batch replace)
      description: >-
        Available only for offers with `credential_system_type_id = 3` (MULTIPLE
        / credential-mode).
             *
             * `credential_system_type_id` is the authoritative delivery-mode field. Values: 1 = No Credentials (manual delivery via chat),
             * 2 = Single (deprecated — coerced to MULTIPLE on write), 3 = Multiple.
      operationId: b1854f7f6d5bd1b64cebd90319e8f523
      parameters:
        - name: Accept
          in: header
          description: API response format
          required: true
          schema:
            type: string
            default: application/json
            enum:
              - application/json
        - name: offerId
          in: path
          required: true
          schema:
            type: integer
            example: 123
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
                - credentials
              properties:
                credentials:
                  type: array
                  items:
                    required:
                      - login
                      - game_password
                    properties:
                      login:
                        type: string
                        maxLength: 255
                        example: user@example.com
                      game_password:
                        type: string
                        maxLength: 255
                        example: SecurePass123
                      email:
                        type: string
                        format: email
                        nullable: true
                      email_password:
                        type: string
                        nullable: true
                      is_2fa_active:
                        type: boolean
                        nullable: true
                      comment:
                        type: string
                        maxLength: 1000
                        nullable: true
                    type: object
                  maxItems: 1000
                  minItems: 1
              type: object
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                properties:
                  result:
                    properties:
                      message:
                        type: string
                        example: Credentials replaced successfully
                      replaced:
                        type: integer
                        example: 5
                    type: object
                type: object
        '400':
          description: Validation error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
                type: object
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    example: Forbidden.
                type: object
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````