openapi: 3.0.1 info: title: Core AccessGroup ContaminationEvent API version: core tags: - name: ContaminationEvent paths: /visionai/api/integrator/contaminationEvents/changes: get: tags: - ContaminationEvent operationId: GetContaminationEventChanges summary: Request list of Contamination Event changes description: "# Request list of Contamination Event changes\r\n\r\nRetrieve changes in the list of Contamination Events for all tenants, that have been made since a specific point in the history\r\n\r\n## Input\r\n\r\n| Parameter | Description |\r\n| ----------------------- | -------------------------- |\r\n| since | Bookmark from extra.until |\r\n| cursor | Bookmark from extra.cursor |\r\n| links | N/A |\r\n\r\n## Output\r\n\r\n| Property\t\t\t\t\t\t| Type | Description\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t |\r\n| ------------------- | -------- | ---------------------------------------------------------------------------------- |\r\n| GUID\t\t\t\t\t\t\t\t| GUID | ID of the Contamination Event.\t\t\t\t\t\t\t\t\t\t\t\t\t \t|\r\n| TenantId\t\t\t\t\t\t| GUID | ID of the Tenant associated with the Contamination Event\t\t |\r\n| CustomerName\t\t\t\t\t|string| Name of the customer of the Contamination Event|\r\n| CompanyOutletId\t\t\t| GUID | ID of the Company Outlet associated with the Contamination Event \t|\r\n| OutletName\t\t\t| string | Name of the Company Outlet associated with the Contamination Event \t|\r\n| CustomerSiteId\t\t\t| GUID | ID of the Customer Site associated with the Contamination Event |\r\n| SiteName\t\t\t| string | Name of the Site associated with the Contamination Event |\r\n| CustomerType\t\t\t| string | Type of customer associated with the Contamination Event |\r\n| CustomerAddress\t\t\t| string | Address of customer associated with the Contamination Event |\r\n| VehicleId\t\t\t\t\t\t| GUID | ID of the Vehicle associated with the Contamination Event\t\t\t\t \t|\r\n| Latitude\t \t\t\t | double | Location of the Contamination Event |\r\n| Longitude\t\t\t\t\t\t| double | Location of the Contamination Event |\r\n| Timestamp\t\t\t\t\t\t| DateTime | Timestamp of the Contamination Event\t |\r\n| ContaminationScore \t| int | Degree of Contamination found |\r\n| GrossWeight\t\t\t|double|Gross weight of the Contamination Event\t|\r\n| TareWeight\t\t\t\t|double| Tare weight of the Contamination Event |\r\n| NetWeight\t\t\t\t|double| Net weight of the Contamination Event|\r\n| Seq\t\t\t\t\t|int|Sequence of the Contamination Event |\r\n| RFID\t\t\t| GUID | RFID of the Contamination Event |\r\n| WeighErrorCode\t\t| int | Weight error code of the Contamination Event |\r\n| Lifter\t\t\t\t|int|Lifter of the Contamination Event\t|\r\n| ContainerId\t\t\t|string|Conntainer Id of the Contamination Event |\r\n| WasteType\t\t\t\t|string|Waste type of the Contamination Event |\r\n| QRCodeRawText\t\t\t|string| Raw QR code value of the COntamination Event\r\n| TotalSurfaceAreaVolume\t\t\t|double| The total surface area of the Contamination Event\r\n| Materials\t\t\t|string| The materials detected of the Contamination Event\r\n| ExternalEventId\t\t\t|string| The external event Id of the Contamination Event\r\n| ImageSas\t\t\t|byte[]| The image SAS url of the Contamination Event expires within 24 hours\r\n|extra.until | string | Bookmark to put in as \"since\" later - appears when there are no more pages for now |\r\n| link.next | URI | Link to follow to get next page with changes |" parameters: - name: since in: query required: false schema: type: string - name: cursor required: false in: query schema: type: string - name: links required: false in: query schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/ApiResourceChanges[ApiContaminationEventExternalResource]' '400': $ref: '#/components/responses/BadRequest' '401': description: '' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' '500': $ref: '#/components/responses/InternalServerError' '501': $ref: '#/components/responses/NotImplemented' '502': $ref: '#/components/responses/BadGateway' '503': $ref: '#/components/responses/ServiceUnavailable' '504': $ref: '#/components/responses/GatewayTimeout' components: responses: GatewayTimeout: description: Gateway Timeout - The server took too long to respond. content: application/json: schema: type: object properties: error: type: string example: The request timed out. Please try again later. additionalProperties: false Forbidden: description: Forbidden - Access denied. content: application/json: schema: type: object properties: error: type: string example: You do not have permission to access this resource. additionalProperties: false NotImplemented: description: This feature is not implemented. content: application/json: schema: type: object properties: error: type: string example: This feature is not implemented. additionalProperties: false NotFound: description: Not Found - The requested resource was not found. content: application/json: schema: type: object properties: error: type: string example: The requested resource was not found. additionalProperties: false InternalServerError: description: Supplied properties are not valid, please try again with proper request. content: application/json: schema: type: object properties: error: type: string example: Supplied properties are not valid, please try again with proper request. additionalProperties: false BadGateway: description: Bad Gateway - The upstream server returned an invalid response. content: application/json: schema: type: object properties: error: type: string example: Temporary issue with the server. Please try again later. additionalProperties: false BadRequest: description: Bad Request - Invalid input parameters. content: application/json: schema: type: object properties: error: type: string example: Invalid request. Please check your input parameters. additionalProperties: false ServiceUnavailable: description: Service Unavailable - The server is currently unavailable. content: application/json: schema: type: object properties: error: type: string example: Service is currently unavailable. Please try again later. additionalProperties: false schemas: ApiResourceChanges[ApiContaminationEventExternalResource]: type: object properties: errors: $ref: '#/components/schemas/ApiResourceErrors' status: $ref: '#/components/schemas/ApiResourceStatus' resource: type: array items: $ref: '#/components/schemas/AMCS.IoT.Contamination.Api.Integrator.ContaminationEvent.ApiContaminationEventExternal' nullable: true extra: $ref: '#/components/schemas/ApiResourceResultUpdatesExtra' additionalProperties: false ApiResourceResultUpdatesExtra: type: object properties: until: type: string nullable: true cursor: type: string nullable: true since: type: string nullable: true additionalProperties: false ApiResourceErrors: type: object properties: errors: type: string nullable: true additionalProperties: false AMCS.IoT.Contamination.Api.Integrator.ContaminationEvent.ApiContaminationEventExternal: type: object properties: resource: $ref: '#/components/schemas/AMCS.IoT.Contamination.Api.Integrator.ContaminationEvent.ApiContaminationEventExternalResourceItem' additionalProperties: false AMCS.IoT.Contamination.Api.Integrator.ContaminationEvent.ApiContaminationEventExternalResourceItem: type: object properties: isValid: type: boolean readOnly: true id: type: integer format: int32 nullable: true readOnly: true id32: type: integer format: int32 readOnly: true guid: type: string format: uuid nullable: true lastChangeReasonId: type: integer format: int32 nullable: true tempIdentifier: type: string nullable: true tenantId: type: string format: uuid customerName: type: string nullable: true companyOutletId: type: string format: uuid nullable: true outletName: type: string nullable: true customerSiteId: type: string format: uuid nullable: true siteName: type: string nullable: true customerType: type: string nullable: true customerAddress: type: string nullable: true vehicleId: type: string format: uuid nullable: true vehicleReg: type: string nullable: true latitude: type: number format: double nullable: true longitude: type: number format: double nullable: true timestamp: type: string format: dateTime example: '2000-01-01 00:00:00.000' contaminationScore: type: integer format: int32 nullable: true grossWeight: type: number format: double nullable: true tareWeight: type: number format: double nullable: true netWeight: type: number format: double nullable: true seq: type: integer format: int32 nullable: true rfid: type: string format: uuid nullable: true weighErrorCode: type: integer format: int32 nullable: true lifter: type: integer format: int32 nullable: true containerId: type: string nullable: true wasteType: type: string nullable: true qrCodeRawText: type: string nullable: true totalSurfaceAreaVolume: type: number format: double nullable: true materials: type: string nullable: true externalEventId: type: string nullable: true imageSas: type: string format: byte nullable: true additionalProperties: false ApiResourceStatus: type: object properties: id: type: integer format: int32 nullable: true isSuccess: type: boolean additionalProperties: false