openapi: 3.2.0 info: title: 701x API V1 Animal Log API description: 701x API version: v1 tags: - name: AnimalLog paths: /AnimalLog/AnimalLogDataByFilter: get: tags: - AnimalLog parameters: - name: top in: query schema: type: - integer - 'null' format: int32 - name: orderBy in: query schema: type: - string - 'null' - name: offset in: query schema: type: - integer - 'null' format: int32 - name: fetch in: query schema: type: - integer - 'null' format: int32 - name: pointer in: query schema: type: - integer - 'null' format: int64 - name: CompanyId in: query schema: type: string format: uuid - name: AnimalId in: query schema: type: - string - 'null' format: uuid - name: FarmId in: query schema: type: - string - 'null' format: uuid - name: LogTypeId in: query schema: type: - string - 'null' - name: Comment in: query schema: type: - string - 'null' - name: Value in: query schema: type: - string - 'null' - name: LessThenCreatedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenCreatedByDate in: query schema: type: - string - 'null' format: date-time - name: LessThenUpdatedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenUpdatedByDate in: query schema: type: - string - 'null' format: date-time - name: LessThenDeletedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenDeletedByDate in: query schema: type: - string - 'null' format: date-time - name: isShared in: query schema: type: boolean default: false responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Animal_Log' application/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' text/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get animal log animal log data by filter x-summary-source: derived operationId: getAnimalLogAnimalLogDataByFilter x-operation-id-source: derived /AnimalLog/LatestAlertSummary: get: tags: - AnimalLog parameters: - name: CompanyId in: query schema: type: string format: uuid - name: LogTypeIds in: query schema: type: - array - 'null' items: type: string - name: DateAfter in: query schema: type: - string - 'null' format: date-time - name: DateBefore in: query schema: type: - string - 'null' format: date-time responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/AnimalAlertSummary' application/json: schema: type: array items: $ref: '#/components/schemas/AnimalAlertSummary' text/json: schema: type: array items: $ref: '#/components/schemas/AnimalAlertSummary' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get animal log latest alert summary x-summary-source: derived operationId: getAnimalLogLatestAlertSummary x-operation-id-source: derived /AnimalLog/AnimalLogDataByFilterRaw: get: tags: - AnimalLog parameters: - name: top in: query schema: type: - integer - 'null' format: int32 - name: orderBy in: query schema: type: - string - 'null' - name: offset in: query schema: type: - integer - 'null' format: int32 - name: fetch in: query schema: type: - integer - 'null' format: int32 - name: pointer in: query schema: type: - integer - 'null' format: int64 - name: CompanyId in: query schema: type: string format: uuid - name: AnimalId in: query schema: type: - string - 'null' format: uuid - name: FarmId in: query schema: type: - string - 'null' format: uuid - name: LogTypeId in: query schema: type: - string - 'null' - name: Comment in: query schema: type: - string - 'null' - name: Value in: query schema: type: - string - 'null' - name: LessThenCreatedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenCreatedByDate in: query schema: type: - string - 'null' format: date-time - name: LessThenUpdatedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenUpdatedByDate in: query schema: type: - string - 'null' format: date-time - name: LessThenDeletedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenDeletedByDate in: query schema: type: - string - 'null' format: date-time - name: isShared in: query schema: type: boolean default: false responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Animal_Log' application/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' text/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get animal log animal log data by filter raw x-summary-source: derived operationId: getAnimalLogAnimalLogDataByFilterRaw x-operation-id-source: derived /AnimalLog/GetAllSSE: get: tags: - AnimalLog parameters: - name: companyId in: query schema: type: string format: uuid responses: '200': description: Success '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get animal log get all sse x-summary-source: derived operationId: getAnimalLogGetAllSSE x-operation-id-source: derived /AnimalLog/{id}: get: tags: - AnimalLog parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Animal_Log' application/json: schema: $ref: '#/components/schemas/Animal_Log' text/json: schema: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get animal log by id x-summary-source: derived operationId: getAnimalLogById x-operation-id-source: derived put: tags: - AnimalLog parameters: - name: id in: path required: true schema: type: string format: uuid requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Animal_Log' application/json: schema: $ref: '#/components/schemas/Animal_Log' text/json: schema: $ref: '#/components/schemas/Animal_Log' application/*+json: schema: $ref: '#/components/schemas/Animal_Log' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Animal_Log' application/json: schema: $ref: '#/components/schemas/Animal_Log' text/json: schema: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Replace animal log by id x-summary-source: derived operationId: putAnimalLogById x-operation-id-source: derived delete: tags: - AnimalLog parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Animal_Log' application/json: schema: $ref: '#/components/schemas/Animal_Log' text/json: schema: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Delete animal log by id x-summary-source: derived operationId: deleteAnimalLogById x-operation-id-source: derived /AnimalLog: post: tags: - AnimalLog requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Animal_Log' application/json: schema: $ref: '#/components/schemas/Animal_Log' text/json: schema: $ref: '#/components/schemas/Animal_Log' application/*+json: schema: $ref: '#/components/schemas/Animal_Log' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Animal_Log' application/json: schema: $ref: '#/components/schemas/Animal_Log' text/json: schema: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create animal log x-summary-source: derived operationId: postAnimalLog x-operation-id-source: derived /AnimalLog/MassInsert: post: tags: - AnimalLog requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Animal_Log' application/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' text/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create animal log mass insert x-summary-source: derived operationId: postAnimalLogMassInsert x-operation-id-source: derived /AnimalLog/MassUpdate: post: tags: - AnimalLog requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Animal_Log' application/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' text/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create animal log mass update x-summary-source: derived operationId: postAnimalLogMassUpdate x-operation-id-source: derived /AnimalLog/MassDelete: post: tags: - AnimalLog requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Log' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Animal_Log' application/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' text/json: schema: type: array items: $ref: '#/components/schemas/Animal_Log' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create animal log mass delete x-summary-source: derived operationId: postAnimalLogMassDelete x-operation-id-source: derived components: schemas: AnimalAlertSummary: type: object properties: animalId: type: string format: uuid logTypeId: type: - string - 'null' latestLogDateTime: type: - string - 'null' format: date-time additionalProperties: false Animal_Log: type: object properties: id: type: string format: uuid rowSequence: type: - integer - 'null' format: int64 logId: type: - string - 'null' format: uuid companyId: type: - string - 'null' format: uuid farmId: type: - string - 'null' format: uuid groupId: type: - string - 'null' format: uuid farmVirtualFenceId: type: - string - 'null' format: uuid farmPointOfInterestId: type: - string - 'null' format: uuid animalCalvingId: type: - string - 'null' format: uuid animalId: type: - string - 'null' format: uuid cattleNumber: type: - string - 'null' registrationNumber: type: - string - 'null' animalCode: type: - string - 'null' animalDescription: type: - string - 'null' tagId: type: - string - 'null' format: uuid networkNumber: type: - string - 'null' event: type: - string - 'null' isConfirmed: type: - boolean - 'null' type: type: - string - 'null' logCategoryId: type: - string - 'null' logTypeId: type: - string - 'null' symptomTypeId: type: - string - 'null' symptoms: type: - string - 'null' conditionTypeId: type: - string - 'null' medicineTypeId: type: - string - 'null' medicationId: type: - string - 'null' format: uuid medicationPurchaseId: type: - string - 'null' format: uuid isEstimateMeasurements: type: - boolean - 'null' addToWatchList: type: - boolean - 'null' old_Value: type: - string - 'null' old_ValueId: type: - string - 'null' value: type: - string - 'null' valueId: type: - string - 'null' dosage: type: - number - 'null' format: double weight: type: - number - 'null' format: double height: type: - number - 'null' format: double temperature: type: - number - 'null' format: double adg: type: - number - 'null' format: double measurement: type: - string - 'null' medicineRoute: type: - string - 'null' medicineLocation: type: - string - 'null' withdrawalDate: type: - string - 'null' format: date-time withdrawalDays: type: - integer - 'null' format: int32 boosterDate: type: - string - 'null' format: date-time boosterDays: type: - integer - 'null' format: int32 lotNumber: type: - string - 'null' serialNumber: type: - string - 'null' manufacturer: type: - string - 'null' expirationDate: type: - string - 'null' format: date-time comment: type: - string - 'null' logDateTime: type: - string - 'null' format: date-time longitude: type: - number - 'null' format: double latitude: type: - number - 'null' format: double altitude: type: - number - 'null' format: double onBehalfMacAddress: type: - string - 'null' onBehalfAnimalId: type: - string - 'null' format: uuid onBehalfCattleNumber: type: - string - 'null' onBehalfTagId: type: - string - 'null' format: uuid onBehalfNetworkNumber: type: - string - 'null' uploadedByTagId: type: - string - 'null' format: uuid uploadedByAnimalId: type: - string - 'null' format: uuid uploadedByFarmPointOfInterestId: type: - string - 'null' format: uuid companyDescription: type: - string - 'null' farmDescription: type: - string - 'null' createdByDate: type: - string - 'null' format: date-time createdByUserId: type: - string - 'null' format: uuid createdByName: type: - string - 'null' lastUpdatedByDate: type: - string - 'null' format: date-time lastUpdatedByUserId: type: - string - 'null' format: uuid lastUpdatedByName: type: - string - 'null' inActiveDate: type: - string - 'null' format: date-time lastSyncEpoch: type: - integer - 'null' format: int64 deleteSyncEpoch: type: - integer - 'null' format: int64 isShared: type: - boolean - 'null' isNew: type: boolean isUpdate: type: boolean isDelete: type: boolean error: type: - string - 'null' additionalProperties: false securitySchemes: oauth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://login.701x.com/connect/authorize tokenUrl: https://login.701x.com/connect/token scopes: api1: Demo API - full access