Skip to main content
PATCH
/
v1
/
org
/
categories
/
{category_id}
/
prompts
Update prompts
curl --request PATCH \
  --url https://api.tryprofound.com/v1/org/categories/{category_id}/prompts \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "prompts": [
    {
      "id": "<string>",
      "prompt": "<string>",
      "topic": {
        "id": "<string>",
        "name": "<string>"
      },
      "language": "<string>",
      "tags": [
        {
          "id": "<string>",
          "name": "<string>"
        }
      ],
      "regions": [
        {
          "id": "<string>",
          "name": "<string>"
        }
      ],
      "platforms": [
        {
          "id": "<string>",
          "name": "<string>"
        }
      ],
      "personas": [
        {
          "id": "<string>",
          "name": "<string>"
        }
      ],
      "prompt_type": "<string>",
      "asset": {
        "id": "<string>",
        "name": "<string>"
      }
    }
  ],
  "dry_run": false
}
'
{
  "dry_run": true,
  "updated": 0,
  "topics_created": 0,
  "tags_created": 0,
  "prompts": []
}

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.