openapi: 3.2.0 info: title: 701x API V1 Turnout API description: 701x API version: v1 tags: - name: Turnout paths: /Turnout/TurnoutDataByFilter: get: tags: - Turnout 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: FarmId in: query schema: type: - string - 'null' format: uuid - name: FarmVirtualFenceId in: query schema: type: - string - 'null' format: uuid - name: SeasonId in: query schema: type: - string - 'null' format: uuid - 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 responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get turnout turnout data by filter x-summary-source: derived operationId: getTurnoutTurnoutDataByFilter x-operation-id-source: derived /Turnout/{id}: get: tags: - Turnout parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Turnout_Master' application/json: schema: $ref: '#/components/schemas/Turnout_Master' text/json: schema: $ref: '#/components/schemas/Turnout_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get turnout by id x-summary-source: derived operationId: getTurnoutById x-operation-id-source: derived put: tags: - Turnout parameters: - name: id in: path required: true schema: type: string format: uuid requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Turnout_Master' application/json: schema: $ref: '#/components/schemas/Turnout_Master' text/json: schema: $ref: '#/components/schemas/Turnout_Master' application/*+json: schema: $ref: '#/components/schemas/Turnout_Master' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Turnout_Master' application/json: schema: $ref: '#/components/schemas/Turnout_Master' text/json: schema: $ref: '#/components/schemas/Turnout_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Replace turnout by id x-summary-source: derived operationId: putTurnoutById x-operation-id-source: derived delete: tags: - Turnout parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Turnout_Master' application/json: schema: $ref: '#/components/schemas/Turnout_Master' text/json: schema: $ref: '#/components/schemas/Turnout_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Delete turnout by id x-summary-source: derived operationId: deleteTurnoutById x-operation-id-source: derived /Turnout: post: tags: - Turnout requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Turnout_Master' application/json: schema: $ref: '#/components/schemas/Turnout_Master' text/json: schema: $ref: '#/components/schemas/Turnout_Master' application/*+json: schema: $ref: '#/components/schemas/Turnout_Master' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Turnout_Master' application/json: schema: $ref: '#/components/schemas/Turnout_Master' text/json: schema: $ref: '#/components/schemas/Turnout_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create turnout x-summary-source: derived operationId: postTurnout x-operation-id-source: derived /Turnout/MassInsert: post: tags: - Turnout requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create turnout mass insert x-summary-source: derived operationId: postTurnoutMassInsert x-operation-id-source: derived /Turnout/MassUpdate: post: tags: - Turnout requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create turnout mass update x-summary-source: derived operationId: postTurnoutMassUpdate x-operation-id-source: derived /Turnout/MassDelete: post: tags: - Turnout requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Turnout_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Turnout_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create turnout mass delete x-summary-source: derived operationId: postTurnoutMassDelete x-operation-id-source: derived components: schemas: Turnout_Master: type: object properties: id: type: string format: uuid companyId: type: - string - 'null' format: uuid farmId: type: - string - 'null' format: uuid farmVirtualFenceId: type: - string - 'null' format: uuid seasonId: type: - string - 'null' format: uuid name: type: - string - 'null' description: type: - string - 'null' turnoutDate: type: - string - 'null' format: date-time turnInDate: type: - string - 'null' format: date-time companyDescription: type: - string - 'null' farmDescription: type: - string - 'null' farmVirtualFenceDescription: type: - string - 'null' seasonDescription: type: - string - 'null' calvingStartDate: type: - string - 'null' format: date-time calvingEndDate: type: - string - 'null' format: date-time 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 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