Update schedules

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

List of schedule updates. Must be up to a maximum of 1000 items.

Array of UpdateItemWithExternalId_ScheduleUpdate (object) or UpdateItemWithId_ScheduleUpdate (object)
Responses
200

Response with list of schedules.

400

The response for a failed request.

403

The response for a forbidden request.

409

The response for a conflict.

post/transformations/schedules/update
Request samples
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)
Response samples
application/json
{
  • "items": [
    • {
      }
    ]
}