createOrUpdateTemperatureCurveDatapoints
Store temperature readings against one temperature curve, overwriting the datapoints it already holds for the same periods. Provides a programmatic alternative to uploading a CSV through a system job.
Arguments
The temperature curve and the datapoints to store against it.
Returns
CreateOrUpdateTemperatureCurveDatapointsOutput type of the createOrUpdateTemperatureCurveDatapoints mutation.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-13620: Temperature curve does not exist.
- KT-CT-13621: Datapoint period is outside the period of the temperature curve.
- KT-CT-13622: Too many datapoints in a single request.
- KT-CT-13623: Invalid datapoint period.
- KT-CT-13624: Datapoints overlap other datapoints of the same temperature curve.
- KT-CT-13625: Datapoint period does not match the granularity of the temperature curve.
- KT-CT-1605: Invalid input.
- KT-CT-7899: An internal error occurred.
Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation CreateOrUpdateTemperatureCurveDatapoints($input: CreateOrUpdateTemperatureCurveDatapointsInput!) {
createOrUpdateTemperatureCurveDatapoints(input: $input) {
createdCount
updatedCount
}
}
Variables
{
"input": CreateOrUpdateTemperatureCurveDatapointsInput
}
Response
{
"data": {
"createOrUpdateTemperatureCurveDatapoints": {
"createdCount": 6,
"updatedCount": 25
}
}
}