Skip to content

Commit

Permalink
DOCS 1062 - Update example to add externalId to timeseries (#1446)
Browse files Browse the repository at this point in the history
Co-authored-by: Håkon V. Treider <[email protected]>
  • Loading branch information
sowmyaraj92 and haakonvt authored Oct 27, 2023
1 parent 4e23f9b commit 45c502d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cognite/client/_api/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def create(self, time_series: TimeSeries | Sequence[TimeSeries]) -> TimeSeries |
>>> from cognite.client import CogniteClient
>>> from cognite.client.data_classes import TimeSeries
>>> c = CogniteClient()
>>> ts = c.time_series.create(TimeSeries(name="my ts"))
>>> ts = c.time_series.create(TimeSeries(name="my_ts", data_set_id=123, external_id="foo"))
"""
api_subversion = self._get_subapiversion_item(time_series)

Expand Down

0 comments on commit 45c502d

Please sign in to comment.