Passer au contenu principal
POST
/
feedback
/
create
Création de feedback
curl --request POST \
  --url https://api.example.com/feedback/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "weave_ref": "<string>",
  "feedback_type": "<string>",
  "payload": {},
  "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",
  "queue_id": "018f1f2a-9c2b-7d3e-b5a1-8c9d2e4f6a7b",
  "wb_user_id": "<string>"
}
'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "wb_user_id": "<string>",
  "payload": {}
}

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
project_id
string
requis
Exemple:

"entity/project"

weave_ref
string
requis
Exemple:

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

feedback_type
string
requis
Exemple:

"custom"

payload
Payload · object
requis
Exemple:
{ "key": "value" }
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"

creator
string | null
Exemple:

"Jane Smith"

annotation_ref
string | null
Exemple:

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

runnable_ref
string | null
Exemple:

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

call_ref
string | null
Exemple:

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

trigger_ref
string | null
Exemple:

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

queue_id
string | null

L’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"

wb_user_id
string | null

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

Réponse

Réponse réussie

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