Create Labeling Guidelines

You can create Labeling Guidelines for your project. First you can create the guideline by providing content in text or md formats.

cURL

Use the following cURL command to create a project. You can copy and paste the following template and replace the access_token, name and content.

curl --location --request POST 'https://datasaur.ai/graphql' \
--header 'Authorization: Bearer access_token' \
--header 'Content-Type: application/json' \
--data-raw '{
"query": "mutation CreateGuideline($input: GuidelineInput!) {\n createGuideline(input: $input) {\n id\n name\n content\n __typename\n }\n}",
"variables": {
"input": {
"name": "project-guideline.md",
"content": "# Project Guideline\n## Section 1\n### Sub Section 1 \nThis is an example."
}
}
}'
  • query: use the value from the sample above.

  • variables

    • name: the title for the Labeling Guidelines.

    • content: the content for the Guidelines . It supports markdown formats.

Response

Here is the response you can expect after issuing the cURL command.

{
"data": {
"createGuideline": {
"id": "12",
"name": "project-guideline.md",
"content": "# Project Guideline\n## Section 1\n### Sub Section 1 \nThis is an example.",
"__typename": "Guideline"
}
},
"extensions": {}
}

Use id from response when creating new project. Put it in documents[].settings.guidelineID field

Contents
cURL
Response