Skip to main content
PATCH
/
v1
/
org
/
categories
/
{category_id}
/
prompts
/
status
Update prompt status
curl --request PATCH \
  --url https://api.tryprofound.com/v1/org/categories/{category_id}/prompts/status \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "prompt_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "status": "active",
  "dry_run": false
}
'
{
  "dry_run": true,
  "updated_prompts": 0
}

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.