operationName: you can fill any alphanumeric string in as the operationName. Refer this page for best practices on choosing an operationName .
teamId: id of the team where we want to create the project.
name: Name for the project.
allTokensMustBeLabeled: This and the following settings can be set to true or false. This setting ensures every token in token-based project must have at least one label.
allowArcDrawing: arrows are enabled and can be drawn between label in token-based project.
allowMultiLabels: a single token or token spans can support multiple labels.
textLabelMaxTokenLength: determines how many tokens can be covered by a single label. 999999 is usually fine as a default value here.
allowCharacterBasedLabeling: allows placing labels on character spans instead of token spans.
kind: Use TOKEN_BASED as the value here since we want to create a token-based labeling project.
consensus: peer review / labeler consensus. This determines how many labelers must agree in order for the system to automatically accept the label.
enableEditLabelSet: labelers will be restricted from adding or removing labels from the label set while labeling.
enableEditSentence: labelers will be able to edit the original text while labeling.
email: this refers to the user's email. Datasaur will throw an error if the email is not found on the team.
documentNames: Optional. List of document names. It refers to the field documents.fileName below. If not specified, all documents will be assigned to the team member above.
role: Optional. This determines the assignment role.
tagNames: a list of tag names to apply to a project. This parameter is optional and the type is string array.
documents: list of documents or files to be attached to this project. Every document must have the fields: name and fileName. There are optional fields, such as settings and fileUrl. Please see GraphQL schema for more information.
name: Document name.
fileName: File name. This can be used in the documentNames field above.
file: Use null.
guidelineID: Put guideline ID here.
labelSetId: in order to generate a labelSetId, please follow the instructions on this page to create and upload a label set.
query: Copy it from cURL example.
💡 You can check this page to see how to upload a file in GraphQL.
We provide this file as an example for the main text for your cURL command above.
Here is the response you can expect after issuing the cURL command.