Create Label Set
cURL
curl --location --request POST 'https://datasaur.ai/graphql' \
--header 'Authorization: Bearer access_token' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation CreateLabelSetMutation($input: CreateLabelSetInput!, $projectId: ID!) { createLabelSet(input: $input, projectId: $projectId) { id }}","variables":{"input":{"name":"Give your new label set a name","index":0,"tagItems":[{"id":"per","parentId":null,"desc":null,"color":"red","tagName":"PER"},{"id":"geo","parentId":null,"desc":null,"color":"green","tagName":"GEO"},{"id":"gpe","parentId":null,"desc":null,"color":null,"tagName":"GPE"}]},"projectId":"<projectId>"}}'{
"query": "mutation CreateLabelSetMutation($input: CreateLabelSetInput!, $projectId: ID!) { createLabelSet(input: $input, projectId: $projectId) { id }}",
"variables": {
"projectId": "<projectId>",
"input": {
"name": "Give your new label set a name",
"index": 0,
"tagItems": [
{
"id": "per",
"parentId": null,
"desc": null,
"color": "red",
"tagName": "PER"
},
{
"id": "geo",
"parentId": null,
"desc": null,
"color": "green",
"tagName": "GEO"
},
{
"id": "gpe",
"parentId": null,
"desc": null,
"color": null,
"tagName": "GPE"
}
]
}
}
}
Response
Last updated