from cognite.client.data_classes.hosted_extractors import MappingUpdate
mapping = MappingUpdate('my_mapping').published.set(False)
res = client.hosted_extractors.mappings.update(mapping){
"items": [
{
"externalId": "my.known.id",
"mapping": {
"expression": "<string>"
},
"input": {
"type": "protobuf",
"messageName": "<string>",
"files": [
{
"fileName": "<string>"
}
]
},
"published": true,
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000
}
]
}Required capabilities:
hostedExtractors:WRITE
Update up to 100 mappings.
from cognite.client.data_classes.hosted_extractors import MappingUpdate
mapping = MappingUpdate('my_mapping').published.set(False)
res = client.hosted_extractors.mappings.update(mapping){
"items": [
{
"externalId": "my.known.id",
"mapping": {
"expression": "<string>"
},
"input": {
"type": "protobuf",
"messageName": "<string>",
"files": [
{
"fileName": "<string>"
}
]
},
"published": true,
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000
}
]
}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.
Mappings to update.
1 - 10 elementsShow child attributes
List of updated mappings.
100Show child attributes
Was this page helpful?