Update mappings
- async AsyncCogniteClient.hosted_extractors.mappings.update(
- items: MappingWrite | MappingUpdate | Sequence[MappingWrite | MappingUpdate],
-
- Parameters:
items (MappingWrite | MappingUpdate | Sequence[MappingWrite | MappingUpdate]) – Mapping(s) to update.
- Returns:
Updated mapping(s)
- Return type:
Mapping | MappingList
Examples
Update mapping:
>>> from cognite.client import CogniteClient >>> from cognite.client.data_classes.hosted_extractors import MappingUpdate >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> mapping = MappingUpdate("my_mapping").published.set(False) >>> res = client.hosted_extractors.mappings.update(mapping)