Skip to main content
PATCH
/
endpoints
/
{id}
/
logs
Updates the Rating for a Completion Log
curl --request PATCH \
  --url https://app.baseplate.ai/endpoints/{id}/logs \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "logs": [
    {}
  ]
}
'

Documentation Index

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

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

Parameters

Path

id
string
required
Baseplate endpoint ID
Authorization
string
required
Baseplate API key. Needs to be in the format โ€œBearer &BASEPLATE_API_KEYโ€
Content-Type
string
Use application/json

Body

logs
Array
Array of logs to batch update. Each object should contain a positive_rating and usage_id. Either โ€œlogsโ€ or โ€œpositive_rating + โ€œusage_idโ€ is required.
{
  "user_id": "8f48225a-8d88-48ae-b464-d02051b9b556",
  "project_id": "52ab5474-5535-4bba-9d7f-590e1dd0a280",
  "timestamp": "2023-02-09T05:11:39.721074+00:00",
  "openai_name": "text-davinci-003",
  "cost": 0.00078,
  "prompt": "Write a product description for Jacket. It is a new product in shoe. The description should have a angry tone.",
  "completion": "\n\nThis Jacket is the ultimate in shoe fashion. It's sleek, stylish",
  "id": "04bc3dfa-d1a1-4647-8970-f180a06f6bea",
  "date": "2023-02-09",
  "rating": 0,
  "temp": 0,
  "completions": null,
  "managed": true,
  "positive_rating": true,
  "template_id": null,
  "values": {
    "tone": "angry",
    "category": "shoe",
    "product_name": "Jacket"
  }
}