PATCH
/
endpoints
/
{id}
/
logs

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"
  }
}