# add_spatial_to_asset

## nominal.experimental.spatial.add_spatial_to_asset(asset, data_scope_name, spatial)

Add a spatial to an asset under a data scope name.

Assets map “data_scope_name” (the name within the asset for the data) to a spatial
(or a spatial rid). The same kind of spatial should use the same data scope name
across assets, since checklists and templates reference data by scope name.

Parameters:
:   - **asset** ([*Asset*](https://dev.nominal.io/python/ref/generated/nominal.core.Asset.md#nominal.core.Asset "nominal.core.asset.Asset"))

      Asset to add the spatial to.
    - **data_scope_name** ([*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)"))

      Name for the data within the asset.
    - **spatial** ([*Spatial*](https://dev.nominal.io/python/ref/generated/nominal.experimental.spatial.Spatial.md#nominal.experimental.spatial.Spatial "nominal.experimental.spatial._spatial.Spatial") *|* [*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)"))

      Spatial, or spatial rid, to add.
