Prompts

Update a prompt

Edit a prompt's text or category, or pause, resume or archive it. Send only the fields you're changing.

PATCHhttps://api.vidrys.com/v1/projects/{project_id}/prompts/{prompt_id}
Plan
Track and above
Key
read-and-write
Rate cost
1 unit

Archiving frees the prompt's slot and keeps its history. Bringing an archived prompt back claims a slot again, so it fails with invalid_request when the plan's limit is already used up.

There is no delete: deleting a prompt would take its measurement history with it.

Reviewed by Garvit Sharma, Co-founder, on 4 November 2026. This call is included from the Track plan, ₹6,999 a month in INR before 18% GST. Requests and responses follow HTTP semantics (RFC 9110), bearer tokens (RFC 6750) and JSON.

What does the request need?

A PATCH request to /v1/projects/{project_id}/prompts/{prompt_id} sends one header, an API key with read-and-write access, and takes 2 path parameters and 3 body fields. Each part is listed below.

Authorization header

Sent as a header on every request.

Authorizationstringrequired

A Vidrys API key, sent as Bearer vidrys_sk_…. This call changes data, so the key must be read-and-write. See Authentication.

Path parameters

project_idstringrequired

The project's id, from List projects.

prompt_idstringrequired

The prompt to change.

Request body

application/json

textstring

New wording, 1–1000 characters.

categorystring

New grouping.

statusenum<string>

active is asked every sweep, inactive is paused but still holds a slot, archived frees it.

Values:activeinactivearchived

What does it return? · 200

application/json

idstring

Prompt id.

textstring

The question, as engines are asked it.

categorystringnullable

Free-text grouping, e.g. Comparison.

statusstring

active prompts are asked on every sweep. inactive ones are paused but still hold a slot in the plan's prompt limit. archived ones keep their history and free the slot.

Values:activeinactivearchived

Which errors can it return?

403 write_not_allowedThe key or connection is read-only, or it belongs to a viewer. Writes need a read-and-write key or connection, from a member who can edit.
404 not_foundThe project or item doesn't exist in this workspace. A project from another workspace also returns 404, never 403.
422 invalid_requestA parameter or body field is missing or has the wrong type or value. The message names the field. Also returned when a write would pass the plan's prompt limit.
401 unauthorizedNo key was sent, or the key is unknown, revoked or expired, or the member who created it has left the workspace or been deactivated.
402 plan_requiredThe workspace's plan doesn't include API access. It's included on every plan from Track up — Solo is the one without it.
403 workspace_not_approvedThe workspace is still waiting for approval, or wasn't approved.
429 rate_limitedToo many requests this minute. Wait for the number of seconds in the `Retry-After` header, then retry.

Every code, and what to retry, is in Errors.