Skip to main content
POST
Add Scenes
Click for Python SDK
This endpoint allows you to upload scenes to a Nucleus Dataset.

Uploading from a cloud provider

  • Keep the content-type of the request as application/json.
  • Specify the URL of the image or pointcloud location. Make sure Scale can access this URL.
  • We currently support remote URLs starting in: gs:, s3:, http:, or https:

Authorizations

Authorization
string
header
required

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

Path Parameters

dataset_id
string
required

The Scale-generated ID of the Dataset.

Body

application/json
reference_id
string
required

User-specified identifier to reference the image.

frames
object[]
required

Mapping from sensor name to DatasetItem.

update
boolean
default:false

Whether or not to update scene-level and item-level metadata upon reference ID collision. Nucleus expects scenes to have the exact same structure and will ignore re-uploaded scenes (same reference ID) that now have a different number of frames or items per frame.

Response

200

dataset_id
string
Example:

"ds_bw6de8s84pe0vbn6p5zg"

new_scenes
integer
default:0
Example:

2

ignored_scenes
integer
default:0
Example:

0

scenes_errored
integer
default:0
Example:

0

errors
integer
default:0
Example:

0