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

# Turn a catalog feed on or off

> Turns automatic refreshes of the catalog's feed on or off.

Turning a feed off doesn't change its URL, its last import, or the catalog's products. Turning a feed on makes it due for a refresh right away. Sending the value that the feed already has changes nothing.

**Required scopes:** `accounts--my:ro`


## OpenAPI

````yaml /api/product-directory/openapi.json patch /v1/catalogs/{catalog_id}/feed
openapi: 3.0.0
info:
  title: Product Directory API
  description: >-
    A service for uploading and managing a product catalog for use by an AI
    Agent.
  version: 1.0.0
servers:
  - url: https://api.text.com/product-directory
    description: Main production server URL
security:
  - PersonalAccessToken: []
paths:
  /v1/catalogs/{catalog_id}/feed:
    patch:
      tags:
        - Catalog
      summary: Turn a catalog feed on or off
      description: >-
        Turns automatic refreshes of the catalog's feed on or off.


        Turning a feed off doesn't change its URL, its last import, or the
        catalog's products. Turning a feed on makes it due for a refresh right
        away. Sending the value that the feed already has changes nothing.
      operationId: turn-a-catalog-feed-on-or-off
      parameters:
        - name: catalog_id
          in: path
          required: true
          description: The catalog ID.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - is_active
              properties:
                is_active:
                  type: boolean
                  description: >-
                    If set to `true`: the feed is refreshed automatically. If
                    set to `false`: automatic refreshes stop.
            example:
              is_active: false
      responses:
        '200':
          description: The feed was turned on or off.
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: authentication
                  message: No Authorization header.
        '404':
          description: >-
            The catalog doesn't exist for this organization, or the catalog has
            no feed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                catalog_not_found:
                  summary: Catalog doesn't exist for this organization
                  value:
                    error:
                      type: not_found
                      message: catalog_not_found
                feed_not_found:
                  summary: Catalog has no feed
                  value:
                    error:
                      type: not_found
                      message: feed_not_found
        '408':
          description: The request timed out.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: request_timeout
                  message: Request timed out
        '422':
          description: '`catalog_id` isn''t a valid UUID, or the request body isn''t valid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: validation
                  message: catalog_id is not a valid UUID.
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              description: The error category.
            message:
              type: string
              description: A message describing the error.
            data:
              type: object
              description: Additional error details, if available.
              properties:
                reason:
                  type: string
                  description: The cause of the error.
  responses:
    TooManyRequests:
      description: >-
        Too many requests were sent in a short time. Wait for the number of
        seconds in the `Retry-After` header, then send the request again.
      headers:
        Retry-After:
          description: The number of seconds to wait before you send the request again.
          schema:
            type: integer
          example: 12
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: too_many_requests
              message: Too many requests
  securitySchemes:
    PersonalAccessToken:
      description: >-
        Use your `account ID` as the username and your personal access token
        (PAT) as the password, or pass a Base64-encoded value directly in the
        Authorization header. For more information, see the <a
        href="/docs/authentication/personal-access-tokens">personal access
        tokens guide</a>.
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.