from cognite.client.data_classes import TransformationScheduleWrite
schedules = [TransformationScheduleWrite(id = 1, interval = "0 * * * *"), TransformationScheduleWrite(external_id="transformation2", interval = "5 * * * *"))]
res = client.transformations.schedules.create(schedules){
"items": [
{
"id": 123,
"externalId": "<string>",
"createdTime": 123,
"lastUpdatedTime": 123,
"interval": "0 0 * * *",
"isPaused": true
}
]
}Required capabilities:
transformationsAcl:WRITE
Schedule transformations with the specified configurations.
from cognite.client.data_classes import TransformationScheduleWrite
schedules = [TransformationScheduleWrite(id = 1, interval = "0 * * * *"), TransformationScheduleWrite(external_id="transformation2", interval = "5 * * * *"))]
res = client.transformations.schedules.create(schedules){
"items": [
{
"id": 123,
"externalId": "<string>",
"createdTime": 123,
"lastUpdatedTime": 123,
"interval": "0 0 * * *",
"isPaused": true
}
]
}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 schedules to create. Must be up to a maximum of 1000 items.
Show child attributes
Response with list of schedules.
Show child attributes
Was this page helpful?