openapi: 3.2.0 info: title: 701x API V1 Attachment API description: 701x API version: v1 tags: - name: Attachment paths: /Attachment/AttachmentDataByFilter: get: tags: - Attachment 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: WOId in: query schema: type: - string - 'null' format: uuid - name: CompanyId in: query schema: type: string format: uuid - name: FarmId in: query schema: type: - string - 'null' format: uuid - name: GroupId in: query schema: type: - string - 'null' format: uuid - name: FarmVirtualFenceId in: query schema: type: - string - 'null' format: uuid - name: FarmPointOfInterestId in: query schema: type: - string - 'null' format: uuid - name: TagId in: query schema: type: - string - 'null' format: uuid - name: AnimalId in: query schema: type: - string - 'null' format: uuid - name: LogId in: query schema: type: - string - 'null' format: uuid - name: FeedbackId in: query schema: type: - string - 'null' format: uuid - name: FileName in: query schema: type: - string - 'null' - name: FileExtension in: query schema: type: - string - 'null' - name: FilePath in: query schema: type: - string - 'null' - name: FileType 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 responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get attachment attachment data by filter x-summary-source: derived operationId: getAttachmentAttachmentDataByFilter x-operation-id-source: derived /Attachment/{id}: get: tags: - Attachment parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Attachment_Master' application/json: schema: $ref: '#/components/schemas/Attachment_Master' text/json: schema: $ref: '#/components/schemas/Attachment_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get attachment by id x-summary-source: derived operationId: getAttachmentById x-operation-id-source: derived put: tags: - Attachment parameters: - name: id in: path required: true schema: type: string format: uuid requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Attachment_Master' application/json: schema: $ref: '#/components/schemas/Attachment_Master' text/json: schema: $ref: '#/components/schemas/Attachment_Master' application/*+json: schema: $ref: '#/components/schemas/Attachment_Master' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Attachment_Master' application/json: schema: $ref: '#/components/schemas/Attachment_Master' text/json: schema: $ref: '#/components/schemas/Attachment_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Replace attachment by id x-summary-source: derived operationId: putAttachmentById x-operation-id-source: derived delete: tags: - Attachment parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Attachment_Master' application/json: schema: $ref: '#/components/schemas/Attachment_Master' text/json: schema: $ref: '#/components/schemas/Attachment_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Delete attachment by id x-summary-source: derived operationId: deleteAttachmentById x-operation-id-source: derived /Attachment: post: tags: - Attachment requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Attachment_Master' application/json: schema: $ref: '#/components/schemas/Attachment_Master' text/json: schema: $ref: '#/components/schemas/Attachment_Master' application/*+json: schema: $ref: '#/components/schemas/Attachment_Master' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Attachment_Master' application/json: schema: $ref: '#/components/schemas/Attachment_Master' text/json: schema: $ref: '#/components/schemas/Attachment_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create attachment x-summary-source: derived operationId: postAttachment x-operation-id-source: derived /Attachment/BlobLinks: post: tags: - Attachment requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: type: string format: uuid application/json: schema: type: - array - 'null' items: type: string format: uuid text/json: schema: type: - array - 'null' items: type: string format: uuid application/*+json: schema: type: - array - 'null' items: type: string format: uuid responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/BlobLinks' application/json: schema: type: array items: $ref: '#/components/schemas/BlobLinks' text/json: schema: type: array items: $ref: '#/components/schemas/BlobLinks' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create attachment blob links x-summary-source: derived operationId: postAttachmentBlobLinks x-operation-id-source: derived /Attachment/MassInsert: post: tags: - Attachment requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create attachment mass insert x-summary-source: derived operationId: postAttachmentMassInsert x-operation-id-source: derived /Attachment/MassUpdate: post: tags: - Attachment requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create attachment mass update x-summary-source: derived operationId: postAttachmentMassUpdate x-operation-id-source: derived /Attachment/MassDelete: post: tags: - Attachment requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Attachment_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Attachment_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create attachment mass delete x-summary-source: derived operationId: postAttachmentMassDelete x-operation-id-source: derived components: schemas: BlobLinks: type: object properties: id: type: string format: uuid fileURL: type: - string - 'null' thumbnailURL: type: - string - 'null' additionalProperties: false Attachment_Master: type: object properties: id: type: string format: uuid companyId: type: - string - 'null' format: uuid companySaleId: type: - string - 'null' format: uuid companyTransferId: type: - string - 'null' format: uuid companyPurchaseId: type: - string - 'null' format: uuid contactId: 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 animalId: type: - string - 'null' format: uuid tagId: type: - string - 'null' format: uuid logId: type: - string - 'null' format: uuid feedbackId: type: - string - 'null' format: uuid woId: type: - string - 'null' format: uuid saleDayId: type: - string - 'null' format: uuid saleDayLotId: type: - string - 'null' format: uuid attachment: type: - string - 'null' format: byte fileURL: type: - string - 'null' fileName: type: - string - 'null' fileExtension: type: - string - 'null' filePath: type: - string - 'null' fileType: type: - string - 'null' fileSize: type: integer format: int64 isProfilePic: type: - boolean - 'null' thumbnailURL: type: - string - 'null' groupCode: type: - string - 'null' groupDescription: type: - string - 'null' 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 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