curl --request POST \
--url https://api.example.com/feedback/replace \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"weave_ref": "<string>",
"feedback_type": "<string>",
"payload": {},
"feedback_id": "<string>",
"id": "018f1f2a-9c2b-7d3e-b5a1-8c9d2e4f6a7b",
"creator": "Jane Smith",
"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": {}
}curl --request POST \
--url https://api.example.com/feedback/replace \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"weave_ref": "<string>",
"feedback_type": "<string>",
"payload": {},
"feedback_id": "<string>",
"id": "018f1f2a-9c2b-7d3e-b5a1-8c9d2e4f6a7b",
"creator": "Jane Smith",
"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": {}
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
"entity/project"
"weave:///entity/project/object/name:digest"
"custom"
{ "key": "value" }If provided by the client, this ID will be used for the feedback row instead of a server-generated one.
"018f1f2a-9c2b-7d3e-b5a1-8c9d2e4f6a7b"
"Jane Smith"
"weave:///entity/project/object/name:digest"
"weave:///entity/project/op/name:digest"
"weave:///entity/project/call/call_id"
"weave:///entity/project/object/name:digest"
Do not set directly. Server will automatically populate this field.
Was this page helpful?