Passer au contenu principal
POST
/
feedback
/
replace
Remplacement de feedback
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>"
}

Autorisations

Authorization
string
header
requis

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

Corps

application/json
feedback_id
string
requis
feedback_type
string
requis
Exemple:

"custom"

payload
Payload · object
requis
Exemple:
{ "key": "value" }
project_id
string
requis
Exemple:

"entity/project"

weave_ref
string
requis
Exemple:

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

annotation_ref
string | null
Exemple:

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

call_ref
string | null
Exemple:

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

creator
string | null
Exemple:

"Jane Smith"

id
string | null

S'il est fourni par le client, cet ID sera utilisé pour la ligne de feedback au lieu d'un ID généré par le serveur.

Exemple:

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

queue_id
string | null

ID de la file d'attente d'annotation à partir de laquelle ce feedback a été créé. Référence à annotation_queues.id. NULL lorsque le feedback est créé en dehors des files d'attente.

Exemple:

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

runnable_ref
string | null
Exemple:

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

scorer_rating_confidences
Scorer Rating Confidences · object

confiance (0-1) par note, avec le nom de la note comme clé

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

texte explicatif par note, avec le nom de la note comme clé

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

notes numériques (0-1), avec le nom de la note comme clé

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

confiance (0-1) par tag, avec le nom du tag comme clé

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

texte explicatif par tag, avec le nom du tag comme clé

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

Tags appliqués à la ref par un scorer

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

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

wb_user_id
string | null

Ne définissez pas ce champ directement. Le serveur le renseignera automatiquement.

Réponse

Réponse réussie

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