Submit feedback for an objective
POST/v1/workspaces/{workspaceId}/objectives/{objectiveId}/feedback
Submits feedback for an objective’s execution. Feedback scores are used by the agent variation scoring system to evaluate and rank variation performance.
Submit feedback for an objective
curl https://api.cadenya.com/v1/workspaces/$WORKSPACE_ID/objectives/$OBJECTIVE_ID/feedback \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CADENYA_API_KEY" \
-d '{
"data": {},
"metadata": {}
}'{
"data": {
"comment": "comment",
"score": 0
},
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"info": {
"agentVariation": {
"id": "id",
"name": "name"
},
"objective": {
"id": "id",
"name": "name"
},
"submittedBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
}
}
}Returns Examples
{
"data": {
"comment": "comment",
"score": 0
},
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"info": {
"agentVariation": {
"id": "id",
"name": "name"
},
"objective": {
"id": "id",
"name": "name"
},
"submittedBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
}
}
}