from cognite.client.data_classes import TransformationNotification
notifications = [TransformationNotification(transformation_id = 1, destination="my@email.com"), TransformationNotification(transformation_external_id="transformation2", destination="other@email.com"))]
res = client.transformations.notifications.create(notifications){
"items": [
{
"id": 123,
"createdTime": 123,
"lastUpdatedTime": 123,
"transformationId": 123,
"destination": "<string>"
}
]
}Required capabilities:
transformationsAcl:WRITE
Subscribe for notifications on the transformation errors.
from cognite.client.data_classes import TransformationNotification
notifications = [TransformationNotification(transformation_id = 1, destination="my@email.com"), TransformationNotification(transformation_external_id="transformation2", destination="other@email.com"))]
res = client.transformations.notifications.create(notifications){
"items": [
{
"id": 123,
"createdTime": 123,
"lastUpdatedTime": 123,
"transformationId": 123,
"destination": "<string>"
}
]
}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.
List of the notifications for new subscriptions. Must be up to a maximum of 1000 items.
1000Show child attributes
Response with list of created notification subscriptions.
Show child attributes
Was this page helpful?