I’m trying to use Update extraction pipelines method to update my extraction pipelines created. Here are some issues i face:
1. I’m unable to update contacts for an extraction pipeline, it throws the below error:
code -
contact_info = fExtractionPipelineContact(name="sangs", email="sm6@slb.com", role = "MAINTAINER", send_notification=True)]
to_update = ExtractionPipelineUpdate(external_id="<PIPELINE-EXT-ID-2>")
to_update.contacts.set(contact_info)
client.extraction_pipelines.update(to_update)
error -
“CogniteAPIError: Unexpected field - items 0].update.contacts.seta0].send_notification - did you mean sendNotification? | code: 400 | X-Request-ID: 918d1113-6a5e-9d38-b850-61e3dc54c220 The API Failed to process some items. Successful (2xx): ] Unknown (5xx): ] Failed (4xx): <PIPELINE-EXT-ID-2>, ...]”
2. I’m unable to set the specified fields to None using sdk : description, source, schedule,documentation, name and dataset-id. Im able to set only metadata and raw-tables to None. Wondering why some are supported and some arent. is this the expected behaviour? below is the error i face when i make specified fields to None:
code-
to_update = ExtractionPipelineUpdate(external_id="<PIPELINE-EXT-ID-2>")
to_update.documentation.set(None)
client.extraction_pipelines.update(to_update)
error -
“CogniteAPIError: Unexpected field - itemsx0].update.documentation.setNull - did you mean set? | code: 400 | X-Request-ID: 40485149-0d37-9f02-bed5-7d9dc32192d3 The API Failed to process some items. Successful (2xx): s] Unknown (5xx): )] Failed (4xx): x<PIPELINE-EXT-ID-2>, ...]”
3. i see “notificationConfig” is not supported in sdk yet. When can we expect it’s support?