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

# Turn Depict on or off for many collections

> The bulk form of PUT /collections/activation for up to 100 collections. The plan limit is checked for the whole batch (402). A collection that fails (unknown, a Shopify error) is reported in `errors` and the others still apply. Returns the rollup.



## OpenAPI

````yaml /api-reference/openapi/lite.json put /collections/bulk-activation
openapi: 3.1.0
info:
  title: Search & Merchandising API
  version: 1.0.0
  description: >-
    REST API behind Depict: Search & Merchandising, the native Shopify app:
    onboarding, collections, boost & bury, dashboards, A/B testing and
    multi-store management. Endpoints are served under the /api/lite prefix and
    are authenticated with the Shopify session token that App Bridge issues to
    the embedded app.
servers:
  - url: /api/lite
security:
  - ShopifySessionToken: []
paths:
  /collections/bulk-activation:
    put:
      summary: Turn Depict on or off for many collections
      description: >-
        The bulk form of PUT /collections/activation for up to 100 collections.
        The plan limit is checked for the whole batch (402). A collection that
        fails (unknown, a Shopify error) is reported in `errors` and the others
        still apply. Returns the rollup.
      operationId: collectionBulkActivation
      parameters:
        - schema:
            type: string
            description: Lite merchant id, e.g. `shopify-<shop id>`.
          required: true
          description: Lite merchant id, e.g. `shopify-<shop id>`.
          name: merchant_id
          in: query
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LiteCollectionsBulkActivationInput'
      responses:
        '200':
          description: The rollup.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkActivationResult'
        '400':
          description: >-
            The query, path or body failed the schema; `detail` carries zod's
            messages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '401':
          description: Not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '402':
          description: >-
            The batch would exceed the plan's active-collection limit, or the
            installation is frozen.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Paywall'
        '403':
          description: Authenticated, but this identity may not call the API.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '404':
          description: Merchant not found for this caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '415':
          description: Content-Type is not application/json.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
components:
  schemas:
    LiteCollectionsBulkActivationInput:
      type: object
      properties:
        collection_ids:
          type: array
          items:
            type: string
          minItems: 1
          maxItems: 100
          description: 1–100 numeric Shopify collection ids; duplicates are applied once.
        active:
          type: boolean
      required:
        - collection_ids
        - active
    BulkActivationResult:
      type: object
      properties:
        updated:
          type: integer
          description: Collections the change was applied to.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/BulkCollectionError'
          description: Per-collection failures; the rest still applied.
        warnings:
          type: array
          items:
            type: string
      required:
        - updated
        - errors
        - warnings
    Detail:
      type: object
      properties:
        detail:
          type: string
      required:
        - detail
      description: 'Every 4xx/5xx body: `{detail}`.'
    Paywall:
      type: object
      properties:
        detail:
          type: string
        code:
          type: string
          enum:
            - product_required
            - collection_limit_exceeded
            - installation_frozen
        product:
          type: string
          enum:
            - search
            - recs
            - vm
        limit:
          type: integer
      required:
        - detail
        - code
      description: >-
        402: the merchant's plan does not include this. Branch on `code`; show
        `detail`.
    BulkCollectionError:
      type: object
      properties:
        collection_id:
          type: string
        error:
          type: string
      required:
        - collection_id
        - error
  securitySchemes:
    ShopifySessionToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Shopify App Bridge session token of the embedded Depict: Search &
        Merchandising app. The shop in the token determines the merchant;
        merchant_id parameters must belong to that shop.

````