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

# Upsert minting allowlist entries

> Create or update allowlist entries for a minting contract asset (max 25 entries per request). If an entry already exists, it will be updated with the new quantity.



## OpenAPI

````yaml /api-reference/openapi.documented.json post /api/minting/assets/allowlist
openapi: 3.0.2
info:
  title: Snag Solutions - API Docs
  description: >-
    Documentation for Loyalty & Socials APIs. Some endpoints require an API key
    to authenticate. To obtain a key, reach out to the Snag Solutions team at
    support@snagsolutions.io.
  version: '0.1'
servers:
  - url: https://admin.snagsolutions.io/
    description: Production
security: []
paths:
  /api/minting/assets/allowlist:
    post:
      tags:
        - Minting
      summary: Upsert minting allowlist entries
      description: >-
        Create or update allowlist entries for a minting contract asset (max 25
        entries per request). If an entry already exists, it will be updated
        with the new quantity.
      parameters: []
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                mintingContractAssetId:
                  type: string
                  format: uuid
                entries:
                  type: array
                  items:
                    type: object
                    properties:
                      walletAddress:
                        type: string
                      quantity:
                        type: integer
                        minimum: 1
                    required:
                      - walletAddress
                      - quantity
                  minItems: 1
                  maxItems: 25
                  title: Entries
                  description: Allowlist entries (max 25 per request)
              required:
                - mintingContractAssetId
                - entries
              title: Minting Allowlist POST
              description: Create or update allowlist entries for a minting asset
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  createdCount:
                    type: integer
                  mintingContractAssetId:
                    type: string
                    format: uuid
                required:
                  - createdCount
                  - mintingContractAssetId
                title: Minting Allowlist POST Response
                description: Response schema for allowlist mutations
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    title: Message
                    description: Error message
                    example: Request body is invalid
                required:
                  - message
                title: Bad Request Response
                description: Schema for bad request response
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    title: Message
                    description: Error message
                    example: Forbidden, Could not validate api key
                required:
                  - message
                title: Forbidden Response
                description: Schema for forbidden response
                example: Forbidden, Could not validate api key
        '404':
          description: '404'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    title: Message
                    description: Error message
                    example: Not found
                required:
                  - message
                title: Not Found Response
                description: Schema for not found response
        '500':
          description: '500'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    title: Success
                    description: Indicates operation success
                    example: false
                  message:
                    type: string
                    title: Message
                    description: Error message
                    example: Internal server error
                  debugInfo:
                    type: string
                    title: Debug Info
                    description: Optional debug information
                    example: Stack trace or additional error details
                required:
                  - success
                  - message
                title: Internal Server Error Response
                description: Schema for internal server error response
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````