openapi: 3.2.0 info: title: Kelowna Production Inj Mapping API version: v1 tags: - name: InjMapping paths: /InjMapping/MapInjections: post: tags: - InjMapping summary: Maps injections to tickets for the given corporation description: 'The algorithm groups injections and tickets into 1-day buckets where it tries to map the two linearly. Days that have tickets associated with credits are skipped. Days on which the algorithm previously ran on have the mappings cleared before being remapped.' parameters: - name: corporationId in: query description: The ID of the corporation to map injections for schema: type: integer format: int32 - name: divisionId in: query description: The ID of the division to map injections for schema: type: integer format: int32 - name: plantId in: query description: The ID of the plant to map injections for schema: type: integer format: int32 - name: minTime in: query description: 'Map tickets and injections after this timestamp. Note that the algorithm pulls data from the start of the previous day relative to this timestamp.' schema: type: string format: date-time - name: maxTime in: query description: 'Map tickets and injections before this timestamp. Note that the algorithm pulls data from the end of the following day relative to this timestamp.' schema: type: string format: date-time responses: '200': description: OK content: text/plain: schema: type: string application/json: schema: type: string text/json: schema: type: string security: - OrcaAuth: - applicationId - roles - {} - {} operationId: postInjMappingMapInjections x-operation-id-source: derived components: securitySchemes: OrcaAuth: type: oauth2 flows: authorizationCode: authorizationUrl: https://auth.carboncure.com/oauth2/authorize tokenUrl: https://auth.carboncure.com/oauth2/token scopes: {} MyCCAuth: type: oauth2 flows: authorizationCode: authorizationUrl: https://auth.carboncure.com/oauth2/authorize tokenUrl: https://auth.carboncure.com/oauth2/token scopes: {} M2MAuth: type: oauth2 flows: authorizationCode: authorizationUrl: https://auth.carboncure.com/oauth2/authorize tokenUrl: https://auth.carboncure.com/oauth2/token scopes: {}