메인 콘텐츠로 건너뛰기
POST
/
feedback
/
replace
피드백 대체
curl --request POST \
  --url https://api.example.com/feedback/replace \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "feedback_id": "<string>",
  "feedback_type": "<string>",
  "payload": {},
  "project_id": "<string>",
  "weave_ref": "<string>",
  "annotation_ref": "weave:///entity/project/object/name:digest",
  "call_ref": "weave:///entity/project/call/call_id",
  "creator": "Jane Smith",
  "id": "018f1f2a-9c2b-7d3e-b5a1-8c9d2e4f6a7b",
  "queue_id": "018f1f2a-9c2b-7d3e-b5a1-8c9d2e4f6a7b",
  "runnable_ref": "weave:///entity/project/op/name:digest",
  "scorer_rating_confidences": {},
  "scorer_rating_reasons": {},
  "scorer_ratings": {},
  "scorer_tag_confidences": {},
  "scorer_tag_reasons": {},
  "scorer_tags": [
    "<string>"
  ],
  "trigger_ref": "weave:///entity/project/object/name:digest",
  "wb_user_id": "<string>"
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "payload": {},
  "wb_user_id": "<string>"
}

인증

Authorization
string
header
필수

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

본문

application/json
feedback_id
string
필수
feedback_type
string
필수
예시:

"custom"

payload
Payload · object
필수
예시:
{ "key": "value" }
project_id
string
필수
예시:

"entity/project"

weave_ref
string
필수
예시:

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

annotation_ref
string | null
예시:

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

call_ref
string | null
예시:

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

creator
string | null
예시:

"Jane Smith"

id
string | null

클라이언트에서 제공한 경우, 서버에서 생성한 ID 대신 이 ID가 피드백 행에 사용됩니다.

예시:

"018f1f2a-9c2b-7d3e-b5a1-8c9d2e4f6a7b"

queue_id
string | null

이 피드백이 생성된 annotation 큐 ID입니다. annotation_queues.id를 참조합니다. 큐 외부에서 피드백이 생성된 경우에는 NULL입니다.

예시:

"018f1f2a-9c2b-7d3e-b5a1-8c9d2e4f6a7b"

runnable_ref
string | null
예시:

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

scorer_rating_confidences
Scorer Rating Confidences · object

평점 이름을 키로 하는 평점별 신뢰도(0-1)

예시:
{ "_rating_": 0.92 }
scorer_rating_reasons
Scorer Rating Reasons · object

평점 이름을 키로 하는 평점별 이유 텍스트

예시:
{ "_rating_": "very confident response" }
scorer_ratings
Scorer Ratings · object

평점 이름을 키로 하는 숫자 평점(0-1)

예시:
{ "_rating_": 0.87 }
scorer_tag_confidences
Scorer Tag Confidences · object

태그 이름을 키로 하는 태그별 신뢰도(0-1)

예시:
{ "nsfw": 0.92 }
scorer_tag_reasons
Scorer Tag Reasons · object

태그 이름을 키로 하는 태그별 이유 텍스트

예시:
{ "nsfw": "Contains explicit language" }
scorer_tags
string[]

Scorer가 ref에 적용한 Tags

예시:
["nsfw", "high-quality"]
trigger_ref
string | null
예시:

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

wb_user_id
string | null

직접 설정하지 마세요. 서버가 이 필드를 자동으로 채웁니다.

응답

성공 응답

created_at
string<date-time>
필수
id
string
필수
payload
Payload · object
필수
wb_user_id
string
필수