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

# Update a collection

> Updates a collection's tap redirect URL. Send null to clear.



## OpenAPI

````yaml /openapi.json patch /v1/collections/{collection_id}
openapi: 3.1.0
info:
  title: Endstate API
  version: v1
  description: Endstate developer API for chip verification and ownership workflows.
servers:
  - url: https://api2.endstate.io
    description: Production
security: []
paths:
  /v1/collections/{collection_id}:
    patch:
      tags:
        - collections
      summary: Update a collection
      description: Updates a collection's tap redirect URL. Send null to clear.
      parameters:
        - schema:
            type: string
            format: uuid
            description: Collection id.
            example: 8e1a7f50-90ab-4cde-8012-3456789abcde
          required: true
          name: collection_id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCollectionRequest'
            example:
              redirect_url: https://brand.example/p
      responses:
        '200':
          description: The updated collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Collection'
              example:
                id: 8e1a7f50-90ab-4cde-8012-3456789abcde
                contract:
                  address: '0x1111111111111111111111111111111111111111'
                  chain_id: 84532
                  status: active
                name: Example Collection
                external_id: collection-001
                redirect_url: https://brand.example/p
      security:
        - ApiKeyBearer: []
components:
  schemas:
    UpdateCollectionRequest:
      type: object
      properties:
        redirect_url:
          type:
            - string
            - 'null'
          format: uri
          description: Tap redirect URL for this collection's units. Send null to clear.
          example: https://brand.example/p
      required:
        - redirect_url
      additionalProperties: false
    Collection:
      type: object
      properties:
        id:
          type: string
          format: uuid
        contract:
          type: object
          properties:
            address:
              type: string
              description: Unique address identifying the collection.
              example: '0x1111111111111111111111111111111111111111'
            chain_id:
              type: integer
              example: 84532
            status:
              type: string
              enum:
                - deploying
                - active
                - failed
              description: >-
                Collection lifecycle status. `deploying` while the collection is
                being provisioned; `active` once it is ready to use.
              example: deploying
          required:
            - address
            - chain_id
            - status
        name:
          type:
            - string
            - 'null'
        external_id:
          type:
            - string
            - 'null'
        redirect_url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            URL a tap on this collection's units redirects to. Unit- and
            product-level redirects take precedence over this value.
          example: https://brand.example/p
      required:
        - id
        - contract
        - name
        - external_id
        - redirect_url
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: end_sk
      description: >-
        Use `Authorization: Bearer end_sk_*` for partner API keys (e.g.
        `end_sk_AbCd_example_api_key`).

````