AgriWebb API
GraphQL/Inputs

AddFeedOnOfferInput

Only one record per field per day is saved. If multiple records for the same day is passed in, only the latest record will be saved.

input AddFeedOnOfferInput {
  value: Float!
  farmId: String!
  fieldId: String!
  time: Timestamp!
  source: SourceType!
}

Fields

AddFeedOnOfferInput.value ● Float!
non-null
scalar

Feed on offer for the given field. Should be provided in kg dry matter per hectare unit (kg DM /ha)

AddFeedOnOfferInput.farmId ● String!
non-null
scalar

Farm identifier to associate the record with

AddFeedOnOfferInput.fieldId ● String!
non-null
scalar

AgriWebb field identifier to associate the record with. You can retrieve a list of field ids by querying fields

AddFeedOnOfferInput.time ● Timestamp!
non-null
scalar

Time the feed on offer was recorded. Format will be UNIX epoch time with milliseconds. (e.g. 1564508046433)

AddFeedOnOfferInput.source ● SourceType!
non-null
enum

Source of the feed on offer record. Possible values are: IOT, Manual, LivestockEntry , LivestockExit

Member Of

addFeedOnOffers

mutation

On this page

FieldsAddFeedOnOfferInput.value ● Float!
non-null
scalar
AddFeedOnOfferInput.farmId ● String!
non-null
scalar
AddFeedOnOfferInput.fieldId ● String!
non-null
scalar
AddFeedOnOfferInput.time ● Timestamp!
non-null
scalar
AddFeedOnOfferInput.source ● SourceType!
non-null
enum
Member Of