POST
/
feedback
/
create
Feedback Create
curl --request POST \
  --url https://trace.wandb.ai/feedback/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "project_id": "entity/project",
  "weave_ref": "weave:///entity/project/object/name:digest",
  "creator": "Jane Smith",
  "feedback_type": "custom",
  "payload": {
    "key": "value"
  },
  "annotation_ref": "weave:///entity/project/object/name:digest",
  "runnable_ref": "weave:///entity/project/op/name:digest",
  "call_ref": "weave:///entity/project/call/call_id",
  "trigger_ref": "weave:///entity/project/object/name:digest",
  "wb_user_id": "<string>"
}'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "wb_user_id": "<string>",
  "payload": {}
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
project_id
string
required
Examples:

"entity/project"

weave_ref
string
required
Examples:

"weave:///entity/project/object/name:digest"

feedback_type
string
required
Examples:

"custom"

payload
object
required
Examples:
{ "key": "value" }
creator
string | null
Examples:

"Jane Smith"

annotation_ref
string | null
Examples:

"weave:///entity/project/object/name:digest"

runnable_ref
string | null
Examples:

"weave:///entity/project/op/name:digest"

call_ref
string | null
Examples:

"weave:///entity/project/call/call_id"

trigger_ref
string | null
Examples:

"weave:///entity/project/object/name:digest"

wb_user_id
string | null

Do not set directly. Server will automatically populate this field.

Response

Successful Response

id
string
required
created_at
string<date-time>
required
wb_user_id
string
required
payload
object
required