openapi: 3.2.0 info: title: 701x API V1 Animal Data Year API description: 701x API version: v1 tags: - name: AnimalDataYear paths: /AnimalDataYear/AnimalDataYearByFilter: get: tags: - AnimalDataYear 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: CompanyId in: query schema: type: string format: uuid - name: AnimalId in: query schema: type: - string - 'null' format: uuid - name: AssociationId in: query schema: type: - string - 'null' - name: RegistrationNumber in: query schema: type: - string - 'null' - name: isShared in: query schema: type: boolean default: false responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Animal_Data_Year' application/json: schema: type: array items: $ref: '#/components/schemas/Animal_Data_Year' text/json: schema: type: array items: $ref: '#/components/schemas/Animal_Data_Year' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get animal data year animal data year by filter x-summary-source: derived operationId: getAnimalDataYearAnimalDataYearByFilter x-operation-id-source: derived /AnimalDataYear/GetAllChanges: get: tags: - AnimalDataYear parameters: - name: lastSynced in: query schema: type: - string - 'null' format: date-time - name: companyId in: query schema: type: string format: uuid - name: includeShared in: query schema: type: boolean default: false requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/SyncingRequestParams' application/json: schema: $ref: '#/components/schemas/SyncingRequestParams' text/json: schema: $ref: '#/components/schemas/SyncingRequestParams' application/*+json: schema: $ref: '#/components/schemas/SyncingRequestParams' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/YearData' application/json: schema: $ref: '#/components/schemas/YearData' text/json: schema: $ref: '#/components/schemas/YearData' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get animal data year get all changes x-summary-source: derived operationId: getAnimalDataYearGetAllChanges x-operation-id-source: derived post: tags: - AnimalDataYear parameters: - name: lastSynced in: query schema: type: - string - 'null' format: date-time - name: companyId in: query schema: type: string format: uuid - name: includeShared in: query schema: type: boolean default: false requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/SyncingRequestParams' application/json: schema: $ref: '#/components/schemas/SyncingRequestParams' text/json: schema: $ref: '#/components/schemas/SyncingRequestParams' application/*+json: schema: $ref: '#/components/schemas/SyncingRequestParams' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/YearData' application/json: schema: $ref: '#/components/schemas/YearData' text/json: schema: $ref: '#/components/schemas/YearData' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create animal data year get all changes x-summary-source: derived operationId: postAnimalDataYearGetAllChanges x-operation-id-source: derived /AnimalDataYear/{id}: get: tags: - AnimalDataYear parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Animal_Data_Year' application/json: schema: $ref: '#/components/schemas/Animal_Data_Year' text/json: schema: $ref: '#/components/schemas/Animal_Data_Year' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get animal data year by id x-summary-source: derived operationId: getAnimalDataYearById x-operation-id-source: derived /AnimalDataYear/Put/{id}: put: tags: - AnimalDataYear parameters: - name: id in: path required: true schema: type: string format: uuid requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Animal_Data_Year' application/json: schema: $ref: '#/components/schemas/Animal_Data_Year' text/json: schema: $ref: '#/components/schemas/Animal_Data_Year' application/*+json: schema: $ref: '#/components/schemas/Animal_Data_Year' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Animal_Data_Year' application/json: schema: $ref: '#/components/schemas/Animal_Data_Year' text/json: schema: $ref: '#/components/schemas/Animal_Data_Year' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Replace animal data year put by id x-summary-source: derived operationId: putAnimalDataYearPutById x-operation-id-source: derived /AnimalDataYear/MassUpdate: post: tags: - AnimalDataYear requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Data_Year' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Data_Year' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Data_Year' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Data_Year' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Animal_Data_Year' application/json: schema: type: array items: $ref: '#/components/schemas/Animal_Data_Year' text/json: schema: type: array items: $ref: '#/components/schemas/Animal_Data_Year' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create animal data year mass update x-summary-source: derived operationId: postAnimalDataYearMassUpdate x-operation-id-source: derived components: schemas: YearData: type: object properties: animalDataYearInserted: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Data_Year' animalDataYearUpdated: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Data_Year' animalDataYearDeleted: type: - array - 'null' items: $ref: '#/components/schemas/Animal_Data_Year' additionalProperties: false Animal_Data_Year: type: object properties: id: type: string format: uuid companyId: type: - string - 'null' format: uuid animalId: type: - string - 'null' format: uuid memberNumber: type: - string - 'null' associationCode: type: - string - 'null' registrationNumber: type: - string - 'null' usdaNumber: type: - string - 'null' workOrderNumber: type: - string - 'null' contemporaryGroup: type: - string - 'null' managmentGroup: type: - string - 'null' subContemporaryGroup: type: - string - 'null' preContemporaryGroup: type: - string - 'null' numberOfContemps: type: - integer - 'null' format: int32 rankInContempGroup: type: - integer - 'null' format: int32 yearlingAgeRange: type: - string - 'null' animalSex: type: - string - 'null' yearDate: type: - string - 'null' format: date-time yearWeight: type: - number - 'null' format: double yearWeightAdj: type: - number - 'null' format: double yearWeightRatio: type: - number - 'null' format: double averageDailyGain: type: - number - 'null' format: double postWeaningGain: type: - number - 'null' format: double feedCode: type: - integer - 'null' format: int32 sheathScore: type: - integer - 'null' format: int32 navelScore: type: - integer - 'null' format: int32 conformationScore: type: - integer - 'null' format: int32 scrotalCircumference: type: - number - 'null' format: double scrotalCircumferenceAdj: type: - number - 'null' format: double hipHeight: type: - number - 'null' format: double frameScore: type: - number - 'null' format: double temperScore: type: - number - 'null' format: double pelvicWidth: type: - number - 'null' format: double pelvicHeight: type: - number - 'null' format: double pelvicAdj: type: - number - 'null' format: double season: type: - integer - 'null' format: int32 createdByDate: type: - string - 'null' format: date-time createdByUserId: type: - string - 'null' format: uuid lastUpdatedByDate: type: - string - 'null' format: date-time lastUpdatedByUserId: type: - string - 'null' format: uuid 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 SyncingTableRequestParams: type: object properties: tableName: type: - string - 'null' dateTimeOffset: type: - string - 'null' format: date-time lastSyncEpochMs: type: - integer - 'null' format: int64 readOnly: true additionalProperties: false SyncingRequestParams: type: object properties: syncingTableRequestParams: type: - array - 'null' items: $ref: '#/components/schemas/SyncingTableRequestParams' 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