Skip to main content
PATCH
/
v1
/
org
/
categories
/
{category_id}
/
prompts
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.updatePrompts(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  { prompts: [{ id: 'id' }] },
);

console.log(response.dry_run);
{
  "dry_run": true,
  "updated": 0,
  "topics_created": 0,
  "tags_created": 0,
  "prompts": []
}

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
prompts
UpdatePromptInput · object[]
required

List of prompt updates. Each entry must include an id and at least one field to change.

dry_run
boolean
default:false

When true, validate and preview changes without persisting them.

Response

Successful Response

Response from updating prompts.

dry_run
boolean
required

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

updated
integer
default:0

Number of prompts that had changes.

topics_created
integer
default:0

Number of new topics created.

tags_created
integer
default:0

Number of new tags created.

prompts
PromptUpdatePreview · object[]

List of prompts with their change diffs.