Delete prompt

DELETE/agent/prompts/{id}

Deletes a prompt

RequiresBearerauthentication

Path parameters

idstringrequired

Prompt ID

Returns  

Prompt deleted successfully

Response fields

successbooleanoptional
messagestringoptional
DELETERequest
# Get authentication token
PHENOML_TOKEN=$(curl -X POST "https://experiment.app.pheno.ml/v2/auth/token" \
  -u "$PHENOML_CLIENT_ID:$PHENOML_CLIENT_SECRET" \
  | jq -r '.access_token')

curl -X DELETE "https://experiment.app.pheno.ml/agent/prompts/{id}" \
  -H "Authorization: Bearer $PHENOML_TOKEN"
200 OKExample Response
{
  "success": true,
  "message": "Prompt deleted successfully"
}