transformation_schedule = client.transformations.schedules.retrieve(id=1)
transformation_schedule.is_paused = True
res = client.transformations.schedules.update(transformation_schedule)
from cognite.client.data_classes import TransformationScheduleUpdate
my_update = TransformationScheduleUpdate(id=1).interval.set("0 * * * *").is_paused.set(False)
res = client.transformations.schedules.update(my_update)
{
"items": [
{
"id": 123,
"externalId": "<string>",
"createdTime": 123,
"lastUpdatedTime": 123,
"interval": "0 0 * * *",
"isPaused": true
}
]
}Required capabilities:
transformationsAcl:WRITE
transformation_schedule = client.transformations.schedules.retrieve(id=1)
transformation_schedule.is_paused = True
res = client.transformations.schedules.update(transformation_schedule)
from cognite.client.data_classes import TransformationScheduleUpdate
my_update = TransformationScheduleUpdate(id=1).interval.set("0 * * * *").is_paused.set(False)
res = client.transformations.schedules.update(my_update)
{
"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 schedule updates. Must be up to a maximum of 1000 items.
Show child attributes
Response with list of schedules.
Show child attributes
Was this page helpful?