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

# Update Collection

> Update the sales details of a collection

**API scope required**: `collections.update`




## OpenAPI

````yaml patch /2022-06-09/collections/{collectionId}
openapi: 3.0.1
info:
  description: N/A
  version: 1.0.0
  title: NFT Minting
  contact:
    name: Crossmint NFT Minting APIs
    url: https://www.crossmint.com
    email: support@crossmint.com
servers:
  - url: https://staging.crossmint.com/api
    description: Staging environment (testnets)
  - url: https://www.crossmint.com/api
    description: Production environment (mainnets)
security:
  - apiKey: []
paths:
  /2022-06-09/collections/{collectionId}:
    patch:
      tags:
        - NFT Collections
      summary: Update Collection Info
      description: |
        Update the sales details of a collection

        **API scope required**: `collections.update`
      operationId: update-collection
      parameters:
        - $ref: '#/components/parameters/collectionId'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                supplyLimit:
                  type: number
                  description: >-
                    The maximum number of NFTs that can be minted for this
                    collection
                payments:
                  $ref: '#/components/schemas/PaymentsObject'
      responses:
        '200':
          description: A JSON object containing transactionId and status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateCollectionResponse'
        '400':
          description: >-
            Invalid arguments, please make sure you're following the api
            specification.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Response'
        '403':
          description: Forbidden error, please ensure the credentials are correct.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Response'
        '404':
          description: Not found error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Response'
        '503':
          description: >-
            Please try again in a few minutes. If the issue still persists,
            contact Crossmint support.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/503Response'
components:
  parameters:
    collectionId:
      name: collectionId
      in: path
      description: >
        This is the identifier for the collection related to the request. Every
        project has default collections: `default-solana` and
        `default-polygon`. 


        The
        [create-collection](/api-reference/minting/collection/create-collection)
        API will result in collections with UUID formatted `collectionId`. 

        **Example:** `9c82ef99-617f-497d-9abb-fd355291681b`


        The
        [create-collection-idempotent](/api-reference/minting/collection/create-collection-idempotent)
        API allows you to specify an arbitrary identifier during the initial
        request.

        **Example:** `your-custom-identifier`
      required: true
      example: default-solana
      schema:
        type: string
  schemas:
    PaymentsObject:
      type: object
      additionalProperties: false
      description: >-
        Enable payments for this collection by setting `price`,
        `recipientAddress` and `currency`
      properties:
        price:
          type: string
          description: The price of the token in native currency for the selected chain
        recipientAddress:
          type: string
          description: The wallet address to receive payouts
        currency:
          type: string
          description: >-
            The currency for the price of the NFT. Defaults to the native
            currency of the chain
    UpdateCollectionResponse:
      type: object
      properties:
        actionId:
          type: string
          example: e9abb61c-9371-447e-af1a-86fb5c073754
        action:
          type: string
          example: collections.update
        status:
          type: string
          example: pending
        data:
          type: object
          properties:
            chain:
              type: string
              example: arbitrum
            collection:
              type: object
              properties:
                id:
                  type: string
                  example: 42c43e55-f92d-4b25-bc99-d8309b6e1f38
                contractAddress:
                  type: string
                  example: '0x45ba91BCa91fA0D384022d3C279866811795FcF7'
            changes:
              type: array
              items:
                type: string
              example: supplyLimit
        startedAt:
          type: string
          format: date-time
          example: '2023-12-30T00:06:56.000Z'
        resource:
          type: string
          example: >-
            https://staging.crossmint.com/api/2022-06-09/collections/<collectionId>
        subscription:
          type: object
          properties:
            enabled:
              type: boolean
    400Response:
      type: object
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
          example: Invalid arguments or empty parameter <missing parameter>.
    403Response:
      type: object
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
          example: Malformed API key. / API key provided doesn't have required scopes.
    404Response:
      type: object
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
          example: Not found
    503Response:
      type: object
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
          example: >-
            Please try again in a few minutes. If the issue still persists,
            contact Crossmint support.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Obtained in the Crossmint developer console

````