Prompt Payloads

Create a Prompt Payload

Changed on

Creates a new sample payload for the specified prompt. Only editors of the team can create.

post/v1/prompts/{id}/payloads

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/v1/prompts/{id}/payloads
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Unique prompt UUID.

Request body

variablesobject required

JSON object containing variable names and sample values.

Example request

{
  "variables": {
    "user": "Arpit",
    "role": "Admin"
  }
}

Response

Prompt payload created successfully

Example response

{
  "payload": {
    "variables": {
      "user": "Arpit",
      "role": "Admin"
    }
  }
}

Changes