Skip to main content
POST
/
v1
/
prompts
/
deployments
/
{id}
/
reject
Reject a non-terminal prompt deployment (owner-only)
curl --request POST \
  --url https://api.trulayer.ai/v1/prompts/deployments/{id}/reject \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cluster_signature": "<string>",
  "status": "proposed",
  "current_prompt": "<string>",
  "proposed_prompt": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "rationale": "<string>",
  "ab_report": {},
  "regression_metric": 123,
  "shipped_at": "2023-11-07T05:31:56Z",
  "rolled_back_at": "2023-11-07T05:31:56Z",
  "approved_by": "<string>",
  "rejection_reason": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Path Parameters

id
string<uuid>
required

Body

application/json
reason
string

Optional short reason; stored on the row.

Response

Updated prompt deployment

A closed-loop prompt-improvement deployment record (TRU-369). Tracks one cluster-targeted proposal through its lifecycle: proposed → ab_running → ab_passed → shipped → monitoring → (regressed → rolled_back) (or → rejected from any non-terminal state, → ab_failed from ab_running).

id
string<uuid>
required
tenant_id
string<uuid>
required
project_id
string<uuid>
required
cluster_signature
string
required

Stable hash of (project_id, cluster_error) so the same cluster across runs maps to the same signature.

status
enum<string>
required
Available options:
proposed,
ab_running,
ab_passed,
ab_failed,
shipped,
monitoring,
regressed,
rolled_back,
rejected
current_prompt
string
required

System prompt at the time of proposal — the "before" side.

proposed_prompt
string
required

LLM-generated improved prompt — the "after" side.

created_at
string<date-time>
required
updated_at
string<date-time>
required
rationale
string

One-sentence explanation from the LLM, rendered next to the diff.

ab_report
object

Full delta report from internal/promptab once the harness completes.

regression_metric
number<double> | null

Rolling regression metric while in monitoring/regressed status.

shipped_at
string<date-time> | null
rolled_back_at
string<date-time> | null
approved_by
string | null

Clerk user ID of the actor (or "system:autoship" / "system:auto_rollback").

rejection_reason
string

Optional short reason on reject; empty string when not set.