Datasaur
Search…
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.
1
curl --location --request POST 'https://datasaur.ai/graphql' \
2
--header 'Authorization: Bearer access_token' \
3
--header 'Content-Type: application/json' \
4
--data-raw '{
5
"query": "mutation CreateGuideline($input: GuidelineInput!) {\n createGuideline(input: $input) {\n id\n name\n content\n __typename\n }\n}",
6
"variables": {
7
"input": {
8
"name": "project-guideline.md",
9
"content": "# Project Guideline\n## Section 1\n### Sub Section 1 \nThis is an example."
10
}
11
}
12
}'
Copied!
    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.
1
{
2
"data": {
3
"createGuideline": {
4
"id": "12",
5
"name": "project-guideline.md",
6
"content": "# Project Guideline\n## Section 1\n### Sub Section 1 \nThis is an example.",
7
"__typename": "Guideline"
8
}
9
},
10
"extensions": {}
11
}
Copied!
Use id from response when creating new project. Put it in documents[].settings.guidelineID field
Last modified 3mo ago
Copy link
Contents
cURL
Response