New: build custom CDF applications with Cognite Flows. Documentation · What's new.
from cognite.client.data_classes.hosted_extractors import DestinationWrite, SessionWrite
destination = DestinationWrite(external_id='my_dest', credentials=SessionWrite("my_nonce"), target_data_set_id=123)
res = client.hosted_extractors.destinations.create(destination)
{
"items": [
{
"externalId": "my.known.id",
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"sessionId": 4503599627370496,
"targetDataSetId": 4503599627370496
}
]
}Required capabilities:
hostedExtractors:WRITE
Create up to 100 destinations.
from cognite.client.data_classes.hosted_extractors import DestinationWrite, SessionWrite
destination = DestinationWrite(external_id='my_dest', credentials=SessionWrite("my_nonce"), target_data_set_id=123)
res = client.hosted_extractors.destinations.create(destination)
{
"items": [
{
"externalId": "my.known.id",
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"sessionId": 4503599627370496,
"targetDataSetId": 4503599627370496
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
Destinations to create.
Show child attributes
List of created destinations
100Show child attributes
Was this page helpful?