Skip to main content
POST
/
hostedextractors
/
destinations
/
update
Python SDK
from cognite.client.data_classes.hosted_extractors import DestinationUpdate
destination = DestinationUpdate('my_dest').target_data_set_id.set(123)
res = client.hosted_extractors.destinations.update(destination)
{
  "items": [
    {
      "externalId": "my.known.id",
      "createdTime": 1730204346000,
      "lastUpdatedTime": 1730204346000,
      "sessionId": 4503599627370496,
      "targetDataSetId": 4503599627370496
    }
  ]
}

Authorizations

Authorization
string
header
required

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.

Body

application/json

Destinations to update.

items
DestinationUpdateItem · object[]
required
Required array length: 1 - 10 elements

Response

List of updated destinations.

items
Destination · object[]
required
Maximum array length: 100
Last modified on April 23, 2026