Create Project
Last updated
Last updated
💡 Every time you use the OAuth credentials, every project will be created on behalf of the registered user’s credentials. This will be beneficial if you want to create multiple projects, and the project owner will always be the same.
We also have a for this. To make the API request, you can follow this , specifically the one with multipart request. It's highly recommended to use the new mutation instead of the deprecated mutation.
New mutation:
Deprecated mutation:
Since it's an asynchronous process, the response is only information about the job, not the created project. You would have to periodically to make sure whether the project is successfully created.
Since the project creation is quite complex, it's recommended to configure the payload of the API request by following these steps.
Use the (PCW) first. You can try all the way until a project is created and make sure the result is as expected. Then, open the PCW and configure the exact same way as before until the last step.
Once you are sure with the configuration, click the View Script
in the top right corner of the page.
Then, you can just copy and paste the whole JSON object as the payload when requesting the GraphQL API.
As you can see on the input API docs, there is documents
attribute which accept array of . Map the uploaded file to the file
attribute on this object for each documents that will be used in the project.
By default, the label set or question set (depending on the project type that will be created) should have been already configured via PCW. The full explanation can be seen .
Specific for token labeling, the attribute will be labelSets
. The detailed of the API payload can be seen .
Specific for bounding box, the attribute will be bboxLabelSets
. The detailed of the API payload can be seen .
Specific for row and doc labeling, the attribute will be documents.settings.questions
that will represent the question sets. The detailed of the object can be seen .
Click for the detailed explanation of the feature.
Mutation: