Skip to main content
PATCH
/
api
/
annotations
/
{id}
Python
import requests

url = "https://app.langwatch.ai/api/annotations/{id}"

payload = {
    "comment": "<string>",
    "isThumbsUp": True,
    "email": "<string>"
}
headers = {
    "X-Auth-Token": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
{
  "status": "<string>",
  "message": "<string>"
}

Authorizations

X-Auth-Token
string
header
required

Path Parameters

id
string
required

ID of annotation to delete

Body

application/json
comment
string
isThumbsUp
boolean
email
string

Response

Annotation response

status
string
message
string
⌘I