API ReferenceInsights

Update prompt

Update a prompt's title, instruction, and sample content. Replaces all three fields, so send the full prompt definition.

A prompt is owned by you, not by a single workspace, so this edits the prompt itself: the change applies to every workspace the prompt is linked to, not just this one (the spaceId in the path only locates the prompt). Only prompts you created can be updated; built-in (admin-managed) prompts cannot.

PATCH/spaces/{spaceId}/prompts/{promptId}

Authorization API key in the x-api-key header

Path parameters

  • spaceIdstringrequired

    ID of the workspace.

  • promptIdstringrequired

    ID of the prompt to update.

Body

application/json · object

  • titlestringrequired
  • promptstringrequired
  • sampleContentstring · nullable

Responses

  • 200Updated prompt

    application/json · Prompt

    • idstringrequired

      The prompt ID. Pass this as promptId to the Create insight endpoint.

    • titlestringrequired

      Short, human-readable name for the prompt.

    • promptstringrequired

      The instruction run against the transcript.

    • sampleContentstring · nullable

      Optional example of the desired output, used to steer formatting and style.

    • adminManagedboolean

      Whether this is a built-in prompt managed by transcript.lol. Admin-managed prompts cannot be edited.

    • autoGenerateboolean

      Whether this prompt runs automatically when a recording finishes transcribing. Only returned by the List prompts endpoint.

  • 400Invalid input

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 401Authentication failed

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 403You don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 404Not found or don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

curl 'https://transcript.lol/api/v1/spaces/string/prompts/string' \
  --request PATCH \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "title": "string",
  "prompt": "string",
  "sampleContent": "string"
}'
const response = await fetch("https://transcript.lol/api/v1/spaces/string/prompts/string", {
  method: "PATCH",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "title": "string",
    "prompt": "string",
    "sampleContent": "string"
  }),
});
const text = await response.text();
import requests

response = requests.patch(
    "https://transcript.lol/api/v1/spaces/string/prompts/string",
    headers={
        "x-api-key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"title\": \"string\",\n  \"prompt\": \"string\",\n  \"sampleContent\": \"string\"\n}",
)
print(response.text)
{
  "id": "string",
  "title": "string",
  "prompt": "string",
  "sampleContent": "string",
  "adminManaged": true,
  "autoGenerate": true
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}