POST
/
v1
/
metrics
/
{metric_id}
/
prompts
{
  "request_id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "success",
  "version": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

metric_id
string
required

The ID of the metric to create the prompt for.

Body

application/json

A request to create a new prompt for a metric.

content
string
required

The content of the prompt to create.

Response

201
application/json
Successful Response

A response containing the version of the created prompt.

request_id
string
required

The ID of the request the response is for.

Example:

"123e4567-e89b-12d3-a456-426614174000"

version
integer
required

The version of the created prompt.

Required range: x > 0
status
string
default:success
Allowed value: "success"