Skip to main content
PATCH
/
v1
/
org
/
categories
/
{category_id}
/
prompts
/
status
JavaScript
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);
{
  "dry_run": true,
  "updated_prompts": 0
}

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.

Authorizations

X-API-Key
string
header
required

Path Parameters

category_id
string<uuid>
required

Body

application/json
prompt_ids
string<uuid>[]
required

IDs of the prompts to update.

status
enum<string>
required

Target status: 'active', 'disabled', or 'deleted'.

Available options:
active,
disabled,
deleted
dry_run
boolean
default:false

When true, validate and preview changes without persisting them.

Response

Successful Response

Response from updating prompt statuses.

dry_run
boolean
required

Whether this was a dry run (no changes persisted).

updated_prompts
integer
default:0

Number of prompts whose status was changed.