A task is a request for information related to a specific report.
Create a task in a specific item
- Query
mutation create { createTask(input: { label: "What's the name of the movie?", type: "free_text", required: true, description: "Tell us", jsonoptions: "[]", json_schema: null, annotated_type: "ProjectMedia", annotated_id: "43" }) { task { label } } }
- Result
{
"data": {
"createTask": {
"task": {
"label": "What's the name of the movie?"
}
}
}
}
Get the tasks and responses from an item
- Query
query { project_media(ids: "43") { tasks { edges { node { label first_response_value } } } } }
- Result
{
"data": {
"project_media": {
"tasks": {
"edges": [
{
"node": {
"label": "What's the name of the movie?",
"first_response_value": "My Neighbor Totoro"
}
},
{
"node": {
"label": "When was the movie released?",
"first_response_value": "16 de Abril de 1988 às 00:00 notime (+0000 GMT)"
}
}
]
}
}
}
}