Skip to main content
POST
Create Dataset From Project
Click for Python SDK
If you already have Annotation, SegmentAnnotation, VideoAnnotation, Categorization, PolygonAnnotation, ImageAnnotation, DocumentTranscription, LidarLinking, or LidarAnnotation projects with Scale, use this endpoint to import your project directly into Nucleus. You’ll need to specify your Scale project_id and the number of tasks that you want to ingest. By default, the name of your Dataset will be the same as your project’s name, and will ingest all tasks (both pending and completed) into the resulting dataset. You can override these defaults by using the specified request parameters. This endpoint is asynchronous because it is possible to have a delay when the number of tasks is larger than 1000. As a result, the endpoint returns the job_id of an AsyncJob, which you can use to check the job’s status (and any errors) via the Check Async Job endpoint.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
project_id
string
required

The id of the Scale project.

last_n_tasks
integer<int32>

An optional field specifying the number of tasks to ingest from the project. If this value is not set, all tasks will be imported.

name
string

An optional field of the name for your dataset. By default it will be the same as the project name.

Response

200

dataset_id
string
Example:

"ds_bwkezj6g5c4g05gqp1eg"

job_id
string
Example:

"job_c19xcf9mkws46gah00yg"

job_last_known_status
string
Example:

"Running"

job_type
string
Example:

"ingestTasks"

job_creation_time
string
Example:

"2021-09-21T20:07:13.055Z"

message
string
Example:

"Importing tasks in the background. You can use the job_id field to asynchronously check the status of this job."