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

# Update prompt status

> Bulk-update the status of one or more prompts. Prompts already in the target status are skipped. Use dry_run to preview without persisting.

Status options:
- 'active': Prompts will run daily.
- 'disabled': Prompts will not run moving forward, but historical data is preserved.
- 'deleted': Prompts are deleted along with historical data



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/profound/openapi.documented.yml patch /v1/org/categories/{category_id}/prompts/status
openapi: 3.1.0
info:
  title: External API
  version: 6c43b49565a0c4e7cb023e22242cc3df28ee7153
servers:
  - url: https://api.tryprofound.com
    description: Production Server
security: []
paths:
  /v1/org/categories/{category_id}/prompts/status:
    patch:
      tags:
        - Organization
        - Categories
      summary: Update prompt status
      description: >-
        Bulk-update the status of one or more prompts. Prompts already in the
        target status are skipped. Use dry_run to preview without persisting.


        Status options:

        - 'active': Prompts will run daily.

        - 'disabled': Prompts will not run moving forward, but historical data
        is preserved.

        - 'deleted': Prompts are deleted along with historical data
      operationId: >-
        update_category_prompt_status_v1_org_categories__category_id__prompts_status_patch
      parameters:
        - name: category_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Category Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePromptStatusBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdatePromptStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - BearerAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Profound from '@profoundai/client';


            const client = new Profound({
              apiKey: process.env['PROFOUND_API_KEY'], // This is the default and can be omitted
            });


            const response = await
            client.organizations.categories.updatePromptStatus(
              '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
              { prompt_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], status: 'active' },
            );


            console.log(response.dry_run);
        - lang: Python
          source: |-
            import os
            from profound import Profound

            client = Profound(
                api_key=os.environ.get("PROFOUND_API_KEY"),  # This is the default and can be omitted
            )
            response = client.organizations.categories.update_prompt_status(
                category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                prompt_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
                status="active",
            )
            print(response.dry_run)
components:
  schemas:
    UpdatePromptStatusBody:
      properties:
        prompt_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Prompt Ids
          description: IDs of the prompts to update.
        status:
          type: string
          enum:
            - active
            - disabled
            - deleted
          title: Status
          description: 'Target status: ''active'', ''disabled'', or ''deleted''.'
        dry_run:
          type: boolean
          title: Dry Run
          description: When true, validate and preview changes without persisting them.
          default: false
      type: object
      required:
        - prompt_ids
        - status
      title: UpdatePromptStatusBody
    UpdatePromptStatusResponse:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          description: Whether this was a dry run (no changes persisted).
        updated_prompts:
          type: integer
          title: Updated Prompts
          description: Number of prompts whose status was changed.
          default: 0
      type: object
      required:
        - dry_run
      title: UpdatePromptStatusResponse
      description: Response from updating prompt statuses.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````