Skip to content

ResourceCollection.create

Create a new resource in this collection.

Passes all kwargs as the JSON body to POST on the collection endpoint. Context parameters (like project_id) are automatically inherited from the collection's URL if not explicitly provided.

Signature

create(**kwargs: Any) -> T

Parameters

Name Type Required Default
**kwargs Any no -

Fields

Field
**kwargs

Return shape

T

Permission

This is a local SDK helper. It does not call the CloudSprite HTTP API.

Usage

project.datasets.create(title="New Dataset")
    Dataset('New Dataset')